Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add onPublish callback method #29

Merged
merged 3 commits into from
Sep 1, 2015
Merged

add onPublish callback method #29

merged 3 commits into from
Sep 1, 2015

Conversation

acrazing
Copy link
Contributor

i found that the method mosquitto_publish is asynchronous, so, the calllback is required!

mosquitto_message_object *message_object;
zval *retval_ptr = NULL, *message_zval = NULL;
zval **params[1];
mosquitto_client_object *object = (mosquitto_client_object *) client_obj;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind putting the indentation here back how it was? I use tabs, not spaces, in C code. I can do it if not.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am very sorry I forgot the damn IDE, could I change it back?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem, I did it before I merged it. Thanks!

On 6 Sep 2015, at 16:44, acrazing [email protected] wrote:

In mosquitto.c:

@@ -1021,39 +1056,75 @@ PHP_MOSQUITTO_API void php_mosquitto_log_callback(struct mosquitto *mosq, void *

PHP_MOSQUITTO_API void php_mosquitto_message_callback(struct mosquitto *mosq, void *client_obj, const struct mosquitto_message *message)
{

  • mosquitto_client_object *object = (mosquitto_client_object *) client_obj;
  • mosquitto_message_object *message_object;
  • zval *retval_ptr = NULL, *message_zval = NULL;
  • zval **params[1];
  • mosquitto_client_object *object = (mosquitto_client_object *) client_obj;
    I am very sorry I forgot the damn IDE, could I change it back?


Reply to this email directly or view it on GitHub.

@mgdm
Copy link
Owner

mgdm commented Sep 1, 2015

Well spotted, thanks!

@mgdm mgdm mentioned this pull request Sep 1, 2015
@mgdm mgdm merged commit 2bbabbb into mgdm:master Sep 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants