XMMS2
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
src
lib
xmmsipc
testclient.c
Go to the documentation of this file.
1
2
#include <glib.h>
3
#include <sys/types.h>
4
#include <sys/socket.h>
5
#include <stdlib.h>
6
7
#include "ipc_transport.h"
8
9
int
main
()
10
{
11
12
xmms_ipc_transport_t
*transport;
13
gint fd;
14
15
transport =
xmms_ipc_client_init
(
"unix:///tmp/xmms2.socket"
);
16
if
(!transport) {
17
printf (
"Korv!\n"
);
18
exit (-1);
19
}
20
21
fd =
xmms_ipc_transport_fd_get
(transport);
22
23
xmms_ipc_transport_write
(transport,
"korv"
, 4);
24
}
Generated on Wed Apr 10 2013 22:08:53 for XMMS2 by
1.8.3