diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2008-04-05 13:26:04 +0100 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2008-04-05 13:26:04 +0100 | 
| commit | 9143aeb969697e05953b0f60a2fff2581fa0f18c (patch) | |
| tree | f05b27febb3451f2203b0db62dbb656bd4960a63 /query.h | |
| parent | f3351f0ae5c6014e36e529684b81e78cad9a66ce (diff) | |
query.h now defines a callback function type, not using void* for it anymore.
Got rid of the bogus window handler pointer as the first argument to the
callback.
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 ); | 
