#include <microfeed-common/microfeedmain.h>
#include <microfeed-common/microfeedmisc.h>
#include <microfeed-common/microfeedthread.h>
#include <sys/time.h>
#include <time.h>
#include <stdio.h>
#include <poll.h>
#include <string.h>
#include <unistd.h>
Go to the source code of this file.
Data Structures | |
struct | _MicrofeedTimeout |
struct | _MicrofeedWatch |
struct | _MicrofeedMain |
Functions | |
MicrofeedMain * | microfeed_main_new () |
Instantiates a new main loop with a shared session-wide DBus connection. | |
MicrofeedMain * | microfeed_main_new_with_dbus_connection (DBusConnection *connection) |
Instantiates a new main loop with a given DBus connection. | |
void | microfeed_main_free (MicrofeedMain *microfeed_main) |
Frees the resources allocated for the main loop. | |
DBusConnection * | microfeed_main_get_dbus_connection (MicrofeedMain *microfeed_main) |
Returns the DBus connection used in the main loop. | |
void | microfeed_main_loop (MicrofeedMain *microfeed_main) |
Executes a main loop repeatedly until a microfeed_main_exit is called. | |
void | microfeed_main_exit (MicrofeedMain *microfeed_main) |
Asks the main loop to stop. | |
MicrofeedTimeout * | microfeed_main_add_timeout (MicrofeedMain *microfeed_main, unsigned long int milliseconds, MicrofeedTimeoutCallback callback, void *user_data) |
Adds a new timeout into the main loop. | |
MicrofeedWatch * | microfeed_main_add_watch (MicrofeedMain *microfeed_main, int fd, MicrofeedWatchType type, MicrofeedWatchCallback callback, void *user_data) |
Adds a new file descriptor to watch into the main loop. | |
void | microfeed_main_remove_timeout (MicrofeedMain *microfeed_main, MicrofeedTimeout *timeout) |
Removes a previously added timeout from the main loop. | |
void | microfeed_main_remove_watch (MicrofeedMain *microfeed_main, MicrofeedWatch *watch) |
Removes a previously added file descriptor watch from the main loop. |