diff options
| author | ulim <a.sporto+bee@gmail.com> | 2008-04-14 15:10:53 +0200 | 
|---|---|---|
| committer | ulim <a.sporto+bee@gmail.com> | 2008-04-14 15:10:53 +0200 | 
| commit | b79308b943149d729b1daea8c56cff9fc02711a0 (patch) | |
| tree | a5f80445ed63d864703941474dc6cf8998df3136 /query.h | |
| parent | 6cac643f6933e431b90fcb937dec505f989e6a53 (diff) | |
| parent | aa311173a85020bcbbbf61135a5451e171d422f5 (diff) | |
merged in upstream r379 (somewhere after 1.2-3).
Just one trivial conflict in the jabber Makefile, went smoothly.
Diffstat (limited to 'query.h')
| -rw-r--r-- | query.h | 8 | 
1 files changed, 5 insertions, 3 deletions
@@ -26,17 +26,19 @@  #ifndef _QUERY_H  #define _QUERY_H +typedef void (*query_callback) ( void *data ); +  typedef struct query  {  	struct im_connection *ic;  	char *question; -	void (* yes) ( gpointer w, void *data ); -	void (* no) ( gpointer w, void *data ); +	query_callback yes, no;  	void *data;  	struct query *next;  } query_t; -query_t *query_add( irc_t *irc, struct im_connection *ic, char *question, void *yes, void *no, void *data ); +query_t *query_add( irc_t *irc, struct im_connection *ic, char *question, +                    query_callback yes, query_callback no, void *data );  void query_del( irc_t *irc, query_t *q );  void query_del_by_conn( irc_t *irc, struct im_connection *ic );  void query_answer( irc_t *irc, query_t *q, int ans );  | 
