aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSimon Busch <morphis@gravedo.de>2011-10-14 16:15:41 +0200
committerSimon Busch <morphis@gravedo.de>2011-10-14 16:15:41 +0200
commite7d27d22237996dbc204cfc46ee08855952c15ef (patch)
tree985dcb13c75ba82842fa4d59b6cdb4d713455d84 /include
parent27ff8ab83b353310a79a5277cff0dd8edffb17cd (diff)
downloadexternal_libsamsung-ipc-e7d27d22237996dbc204cfc46ee08855952c15ef.zip
external_libsamsung-ipc-e7d27d22237996dbc204cfc46ee08855952c15ef.tar.gz
external_libsamsung-ipc-e7d27d22237996dbc204cfc46ee08855952c15ef.tar.bz2
Implement log handler delegate the user can set to forwarding logging output to another target
Signed-off-by: Simon Busch <morphis@gravedo.de>
Diffstat (limited to 'include')
-rw-r--r--include/radio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/radio.h b/include/radio.h
index 0847e24..123ac7a 100644
--- a/include/radio.h
+++ b/include/radio.h
@@ -57,8 +57,10 @@ struct ipc_response {
struct ipc_client;
typedef int (*ipc_client_transport_cb)(uint8_t *data, unsigned int size, void *user_data);
+typedef int (*ipc_client_log_handler_cb)(const char *message, void *user_data);
struct ipc_client *ipc_client_new(int client_type);
+int ipc_client_set_log_handler(struct ipc_client *client, ipc_client_log_handler_cb log_handler_cb, void *user_data);
int ipc_client_set_delegates(struct ipc_client *client, ipc_client_transport_cb write, void *write_data,
ipc_client_transport_cb read, void *read_data);
int ipc_client_free(struct ipc_client *client);