| #ifndef __LYNQ_BROADCAST_RECEIVE_H__ |
| #define __LYNQ_BROADCAST_RECEIVE_H__ |
| #include <gio/gio.h> |
| #include <glib.h> |
| #include <pthread.h> |
| |
| #define BUFMAX 2048 |
| typedef void (*BroadcastCallbackByName)(const char*, int data_length,const char*); |
| typedef void (*BroadcastCallbackById)(int id, int data_length,const char*); |
| typedef void (*BroadcastCallbackParamUnfixed)(char* name,GVariant *parameters); |
| /* |
| struct BroadcastName { |
| char *product_id; |
| char *product_name; |
| };*/ |
| |
| void delete_receive(); |
| void register_broadcast_receiver(); |
| int broadcast_loop(); |
| void register_broadcast_loop(void); |
| //BOOL ServiceIsReady(void); |
| void receive_callback_by_name(char* name,BroadcastCallbackByName callback); |
| void receive_callback_by_id(int id,BroadcastCallbackById callback); |
| void receive_callback_prame_unfixed(char* name,BroadcastCallbackParamUnfixed callback); |
| #endif //__LOG_H__ |