diff options
Diffstat (limited to 'm4a_afb_comm.h')
-rw-r--r-- | m4a_afb_comm.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/m4a_afb_comm.h b/m4a_afb_comm.h index 7760bf9..7b072a2 100644 --- a/m4a_afb_comm.h +++ b/m4a_afb_comm.h @@ -21,7 +21,8 @@ #ifndef __M4A_AFB_COMM_H__ #define __M4A_AFB_COMM_H__ -#include <pulse/json.h> +#include <stdbool.h> +#include <json-c/json.h> typedef struct _m4a_afb_comm m4a_afb_comm; @@ -31,11 +32,14 @@ enum m4a_afb_reply { }; typedef void (*m4a_afb_done_cb_t)(enum m4a_afb_reply r, - const pa_json_object *response, + json_object *response, void *userdata); -bool m4a_afb_call_async(m4a_afb_comm *comm, const char *api, const char *verb, - char *object, m4a_afb_done_cb_t done_cb, void *userdata); +bool m4a_afb_call_async(m4a_afb_comm *comm, + const char *verb, + json_object *object, + m4a_afb_done_cb_t done_cb, + void *userdata); m4a_afb_comm *m4a_afb_comm_new(const char *uri); void m4a_afb_comm_free(m4a_afb_comm *comm); |