--- rxvt-unicode/src/rxvttoolkit.h 2011/02/11 01:24:46 1.50 +++ rxvt-unicode/src/rxvttoolkit.h 2011/02/12 00:50:04 1.53 @@ -4,6 +4,7 @@ * * All portions of code are copyright by their respective author/s. * Copyright (c) 2003-2006 Marc Lehmann + * Copyright (c) 2011 Emanuele Giaquinta * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -364,20 +365,22 @@ #define Sel_CompoundText 0x10 /* last request was COMPOUND_TEXT */ #define Sel_UTF8String 0x20 /* last request was UTF8_STRING */ -typedef void (*sel_cb)(char *data, unsigned int len, struct rxvt_selection *rs, void *ptr); +typedef void (*sel_cb)(char *data, unsigned int len, struct rxvt_selection *rs); struct rxvt_selection { rxvt_selection (rxvt_display *disp, int selnum, Time tm, Window win, Atom prop, sel_cb cb, void *ptr); + void run (); ~rxvt_selection (); + void *user_data; + private: rxvt_display *display; Time request_time; Window request_win; Atom request_prop; sel_cb request_cb; - void *user_data; unsigned char selection_wait; unsigned char selection_type;