myMPD
Internal API documentation
Loading...
Searching...
No Matches
mympd_worker.c File Reference

MPD worker thread implementation. More...

#include "compile_time.h"
#include "src/mympd_worker/mympd_worker.h"
#include "dist/sds/sds.h"
#include "src/lib/log.h"
#include "src/lib/mem.h"
#include "src/lib/mympd_state.h"
#include "src/lib/sds_extras.h"
#include "src/lib/thread.h"
#include "src/mympd_client/connection.h"
#include "src/mympd_client/stickerdb.h"
#include "src/mympd_worker/api.h"
#include <pthread.h>
#include <string.h>
Include dependency graph for mympd_worker.c:

Functions

static void * mympd_worker_run (void *arg)
 
bool mympd_worker_start (struct t_mympd_state *mympd_state, struct t_partition_state *partition_state, struct t_work_request *request)
 

Detailed Description

MPD worker thread implementation.

Function Documentation

◆ mympd_worker_run()

static void * mympd_worker_run ( void *  arg)
static

Private definitions

Private functions This is the main function of the worker thread.

Parameters
argvoid pointer to the mympd_worker_state
Returns
NULL

◆ mympd_worker_start()

bool mympd_worker_start ( struct t_mympd_state mympd_state,
struct t_partition_state partition_state,
struct t_work_request request 
)

Public functions Starts the worker thread in detached state.

Parameters
mympd_statepointer to mympd_state struct
partition_statepointer to partition_state struct
requestthe work request
Returns
true on success, else false