--- deliantra/server/include/cfperl.h 2006/12/15 19:59:19 1.37 +++ deliantra/server/include/cfperl.h 2006/12/16 03:08:26 1.38 @@ -357,6 +357,19 @@ void cancel () { GEventAPI->cancel ((pe_watcher *)pe); } // private }; +struct iw : watcher, callback +{ + template + iw (O object, M method) + : callback (object, method) + { + alloc (); + } + +private: + void alloc (); +}; + struct iow : watcher, callback { template @@ -366,9 +379,9 @@ alloc (); } - iow &fd (int fd); + void fd (int fd); int poll (); - iow &poll (int events); + void poll (int events); private: void alloc ();