XmmsClient
Functions
ipc.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <xmmsclient/xmmsclient.h>
#include <xmmsc/xmmsc_ipc_transport.h>
#include <xmmsc/xmmsc_ipc_msg.h>
#include <xmmsclientpriv/xmmsclient.h>
#include <xmmsclientpriv/xmmsclient_ipc.h>
#include <xmmsclientpriv/xmmsclient_util.h>
#include <xmmsclientpriv/xmmsclient_queue.h>
#include <xmmsc/xmmsc_idnumbers.h>
#include <xmmsc/xmmsc_util.h>
#include <xmmsc/xmmsc_stdint.h>
#include <xmmsc/xmmsc_sockets.h>

Functions

int xmmsc_ipc_io_in_callback (xmmsc_ipc_t *ipc)
 
int xmmsc_ipc_io_out (xmmsc_ipc_t *ipc)
 
int xmmsc_ipc_io_out_callback (xmmsc_ipc_t *ipc)
 
xmms_socket_t xmmsc_ipc_fd_get (xmmsc_ipc_t *ipc)
 
const char * xmmsc_ipc_error_get (xmmsc_ipc_t *ipc)
 
void xmmsc_ipc_disconnect (xmmsc_ipc_t *ipc)
 
bool xmmsc_ipc_disconnected (xmmsc_ipc_t *ipc)
 
xmmsc_ipc_t * xmmsc_ipc_init (void)
 
void xmmsc_ipc_disconnect_set (xmmsc_ipc_t *ipc, void(*disconnect_callback)(void *), void *userdata, xmmsc_user_data_free_func_t free_func)
 
void xmmsc_ipc_need_out_callback_set (xmmsc_ipc_t *ipc, void(*callback)(int, void *), void *userdata, xmmsc_user_data_free_func_t free_func)
 
void xmmsc_ipc_lock_set (xmmsc_ipc_t *ipc, void *lock, void(*lockfunc)(void *), void(*unlockfunc)(void *))
 
void xmmsc_ipc_result_register (xmmsc_ipc_t *ipc, xmmsc_result_t *res)
 
xmmsc_result_txmmsc_ipc_result_lookup (xmmsc_ipc_t *ipc, uint32_t cookie)
 
void xmmsc_ipc_result_unregister (xmmsc_ipc_t *ipc, xmmsc_result_t *res)
 
void xmmsc_ipc_error_set (xmmsc_ipc_t *ipc, char *error)
 
void xmmsc_ipc_wait_for_event (xmmsc_ipc_t *ipc, unsigned int timeout)
 
bool xmmsc_ipc_msg_write (xmmsc_ipc_t *ipc, xmms_ipc_msg_t *msg, uint32_t cookie)
 
void xmmsc_ipc_destroy (xmmsc_ipc_t *ipc)
 
bool xmmsc_ipc_connect (xmmsc_ipc_t *ipc, char *path)
 

Function Documentation

bool xmmsc_ipc_connect ( xmmsc_ipc_t *  ipc,
char *  path 
)

Referenced by xmmsc_connect().

void xmmsc_ipc_destroy ( xmmsc_ipc_t *  ipc)

Referenced by xmmsc_connect().

void xmmsc_ipc_disconnect ( xmmsc_ipc_t *  ipc)
void xmmsc_ipc_disconnect_set ( xmmsc_ipc_t *  ipc,
void(*)(void *)  disconnect_callback,
void *  userdata,
xmmsc_user_data_free_func_t  free_func 
)
bool xmmsc_ipc_disconnected ( xmmsc_ipc_t *  ipc)

Referenced by xmmsc_io_in_handle().

const char* xmmsc_ipc_error_get ( xmmsc_ipc_t *  ipc)

Referenced by xmmsc_result_wait().

void xmmsc_ipc_error_set ( xmmsc_ipc_t *  ipc,
char *  error 
)

Referenced by xmmsc_ipc_disconnect().

xmms_socket_t xmmsc_ipc_fd_get ( xmmsc_ipc_t *  ipc)

Referenced by xmmsc_io_fd_get().

xmmsc_ipc_t* xmmsc_ipc_init ( void  )

Referenced by xmmsc_connect().

int xmmsc_ipc_io_in_callback ( xmmsc_ipc_t *  ipc)
int xmmsc_ipc_io_out ( xmmsc_ipc_t *  ipc)
int xmmsc_ipc_io_out_callback ( xmmsc_ipc_t *  ipc)
void xmmsc_ipc_lock_set ( xmmsc_ipc_t *  ipc,
void *  lock,
void(*)(void *)  lockfunc,
void(*)(void *)  unlockfunc 
)

Referenced by xmmsc_lock_set().

bool xmmsc_ipc_msg_write ( xmmsc_ipc_t *  ipc,
xmms_ipc_msg_t msg,
uint32_t  cookie 
)
void xmmsc_ipc_need_out_callback_set ( xmmsc_ipc_t *  ipc,
void(*)(int, void *)  callback,
void *  userdata,
xmmsc_user_data_free_func_t  free_func 
)
xmmsc_result_t* xmmsc_ipc_result_lookup ( xmmsc_ipc_t *  ipc,
uint32_t  cookie 
)
void xmmsc_ipc_result_register ( xmmsc_ipc_t *  ipc,
xmmsc_result_t res 
)

Referenced by xmmsc_result_new().

void xmmsc_ipc_result_unregister ( xmmsc_ipc_t *  ipc,
xmmsc_result_t res 
)
void xmmsc_ipc_wait_for_event ( xmmsc_ipc_t *  ipc,
unsigned int  timeout 
)

Referenced by xmmsc_result_wait().