|
avahi 0.6.30
|
00001 #ifndef foothreadedwatchhfoo 00002 #define foothreadedwatchhfoo 00003 00004 /*** 00005 This file is part of avahi. 00006 00007 avahi is free software; you can redistribute it and/or modify it 00008 under the terms of the GNU Lesser General Public License as 00009 published by the Free Software Foundation; either version 2.1 of the 00010 License, or (at your option) any later version. 00011 00012 avahi is distributed in the hope that it will be useful, but WITHOUT 00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00014 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General 00015 Public License for more details. 00016 00017 You should have received a copy of the GNU Lesser General Public 00018 License along with avahi; if not, write to the Free Software 00019 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00020 USA. 00021 ***/ 00022 00025 #include <sys/poll.h> 00026 #include <avahi-common/cdecl.h> 00027 #include <avahi-common/watch.h> 00028 00029 AVAHI_C_DECL_BEGIN 00030 00032 typedef struct AvahiThreadedPoll AvahiThreadedPoll; 00033 00036 AvahiThreadedPoll *avahi_threaded_poll_new(void); 00037 00040 void avahi_threaded_poll_free(AvahiThreadedPoll *p); 00041 00045 const AvahiPoll* avahi_threaded_poll_get(AvahiThreadedPoll *p); 00046 00056 int avahi_threaded_poll_start(AvahiThreadedPoll *p); 00057 00061 int avahi_threaded_poll_stop(AvahiThreadedPoll *p); 00062 00066 void avahi_threaded_poll_quit(AvahiThreadedPoll *p); 00067 00072 void avahi_threaded_poll_lock(AvahiThreadedPoll *p); 00073 00076 void avahi_threaded_poll_unlock(AvahiThreadedPoll *p); 00077 00078 AVAHI_C_DECL_END 00079 00080 #endif