avahi is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of the
License, or (at your option) any later version.
avahi is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of the
License, or (at your option) any later version.
avahi is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
Public License for more details.
avahi is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with avahi; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA.
***/
You should have received a copy of the GNU Lesser General Public
License along with avahi; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA.
***/
typedef struct AvahiThreadedPoll AvahiThreadedPoll;
/** Create a new event loop object. This will allocate the internal
typedef struct AvahiThreadedPoll AvahiThreadedPoll;
/** Create a new event loop object. This will allocate the internal
-/** Free an event loop object. Ths will stop the associated evet loop
- * thread (if it is running). */
+/** Free an event loop object. This will stop the associated event loop
+ * thread (if it is running). \since 0.6.4 */
void avahi_threaded_poll_free(AvahiThreadedPoll *p);
/** Return the abstracted poll API object for this event loop
* object. The will return the same pointer each time it is
void avahi_threaded_poll_free(AvahiThreadedPoll *p);
/** Return the abstracted poll API object for this event loop
* object. The will return the same pointer each time it is
* you must make sure to access the event loop object
* (AvahiThreadedPoll, AvahiPoll and all its associated objects)
* synchronized, i.e. with proper locking. You may want to use
* you must make sure to access the event loop object
* (AvahiThreadedPoll, AvahiPoll and all its associated objects)
* synchronized, i.e. with proper locking. You may want to use
* which will lock the the entire event loop. Please note that event
* loop callback functions are called from the event loop helper thread
* with that lock held, i.e. avahi_threaded_poll_lock() calls are not
* which will lock the the entire event loop. Please note that event
* loop callback functions are called from the event loop helper thread
* with that lock held, i.e. avahi_threaded_poll_lock() calls are not
int avahi_threaded_poll_start(AvahiThreadedPoll *p);
/** Request that the event loop quits and the associated thread
stops. Call this from outside the helper thread if you want to shut
int avahi_threaded_poll_start(AvahiThreadedPoll *p);
/** Request that the event loop quits and the associated thread
stops. Call this from outside the helper thread if you want to shut
int avahi_threaded_poll_stop(AvahiThreadedPoll *p);
/** Request that the event loop quits and the associated thread
stops. Call this from inside the helper thread if you want to shut it
int avahi_threaded_poll_stop(AvahiThreadedPoll *p);
/** Request that the event loop quits and the associated thread
stops. Call this from inside the helper thread if you want to shut it
void avahi_threaded_poll_quit(AvahiThreadedPoll *p);
/** Lock the main loop object. Use this if you want to access the event
* loop objects (such as creating a new event source) from anything
* else but the event loop helper thread, i.e. from anything else but event
void avahi_threaded_poll_quit(AvahiThreadedPoll *p);
/** Lock the main loop object. Use this if you want to access the event
* loop objects (such as creating a new event source) from anything
* else but the event loop helper thread, i.e. from anything else but event
void avahi_threaded_poll_lock(AvahiThreadedPoll *p);
/** Unlock the event loop object, use this as counterpart to
void avahi_threaded_poll_lock(AvahiThreadedPoll *p);
/** Unlock the event loop object, use this as counterpart to