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.c | |
| 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.c')
| -rw-r--r-- | query.c | 7 | 
1 files changed, 4 insertions, 3 deletions
| @@ -29,7 +29,8 @@  static void query_display( irc_t *irc, query_t *q );  static query_t *query_default( irc_t *irc ); -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 )  {  	query_t *q = g_new0( query_t, 1 ); @@ -143,7 +144,7 @@ void query_answer( irc_t *irc, query_t *q, int ans )  			imcb_log( q->ic, "Accepted: %s", q->question );  		else  			irc_usermsg( irc, "Accepted: %s", q->question ); -		q->yes( NULL, q->data ); +		q->yes( q->data );  	}  	else  	{ @@ -151,7 +152,7 @@ void query_answer( irc_t *irc, query_t *q, int ans )  			imcb_log( q->ic, "Rejected: %s", q->question );  		else  			irc_usermsg( irc, "Rejected: %s", q->question ); -		q->no( NULL, q->data ); +		q->no( q->data );  	}  	q->data = NULL; | 
