|
myMPD
Internal API documentation
|
mympd_api thread implementation More...
#include "compile_time.h"#include "src/mympd_api/mympd_api.h"#include "src/lib/cache/cache_rax_album.h"#include "src/lib/event.h"#include "src/lib/filehandler.h"#include "src/lib/last_played.h"#include "src/lib/log.h"#include "src/lib/mem.h"#include "src/lib/msg_queue.h"#include "src/lib/mympd_state.h"#include "src/lib/sds_extras.h"#include "src/lib/signal.h"#include "src/lib/thread.h"#include "src/lib/timer.h"#include "src/lib/webradio.h"#include "src/mympd_api/home.h"#include "src/mympd_api/settings.h"#include "src/mympd_api/timer.h"#include "src/mympd_api/timer_handlers.h"#include "src/mympd_api/trigger.h"#include "src/mympd_client/autoconf.h"#include "src/mympd_client/connection.h"#include "src/mympd_client/idle.h"#include "src/mympd_client/partitions.h"#include "src/mympd_client/stickerdb.h"#include <errno.h>
Functions | |
| static void | populate_pfds (struct t_mympd_state *mympd_state) |
| static void | handle_socket_pollin (struct t_mympd_state *mympd_state, nfds_t i, struct t_work_request **request) |
| static void | handle_socket_error (struct t_mympd_state *mympd_state, nfds_t i) |
| void * | mympd_api_loop (void *arg_config) |
mympd_api thread implementation
|
static |
Handles socket errors
| mympd_state | pointer to mympd state |
| i | fd number from pfds array |
|
static |
Handles socket read event
| mympd_state | pointer to mympd state |
| i | fd number from pfds array |
| request | pointer to work request struct to populate |
| void * mympd_api_loop | ( | void * | arg_config | ) |
This is the main function for the mympd_api thread
| arg_config | void pointer to t_config struct |
|
static |
Populates the poll fds array with fds from: mpd partitions, mpd stickerdb, timers
| mympd_state | pointer to mympd state |