XMMS2
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
src
include
xmmsc
xmmsc_ipc_transport.h
Go to the documentation of this file.
1
/* XMMS2 - X Music Multiplexer System
2
* Copyright (C) 2003-2011 XMMS2 Team
3
*
4
* PLUGINS ARE NOT CONSIDERED TO BE DERIVED WORK !!!
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2.1 of the License, or (at your option) any later version.
10
*
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
15
*/
16
17
18
#ifndef XMMS_IPC_TRANSPORT_H
19
#define XMMS_IPC_TRANSPORT_H
20
21
#include "
xmmsc/xmmsc_stdint.h
"
22
#include "
xmmsc/xmmsc_sockets.h
"
23
24
typedef
struct
xmms_ipc_transport_St
xmms_ipc_transport_t
;
25
26
typedef
int (*
xmms_ipc_read_func
) (
xmms_ipc_transport_t
*,
char
*, int);
27
typedef
int (*
xmms_ipc_write_func
) (
xmms_ipc_transport_t
*,
char
*, int);
28
typedef
xmms_ipc_transport_t
*(*xmms_ipc_accept_func) (
xmms_ipc_transport_t
*);
29
typedef
void (*
xmms_ipc_destroy_func
) (
xmms_ipc_transport_t
*);
30
31
void
xmms_ipc_transport_destroy
(
xmms_ipc_transport_t
*ipct);
32
int
xmms_ipc_transport_read
(
xmms_ipc_transport_t
*ipct,
char
*buffer,
int
len);
33
int
xmms_ipc_transport_write
(
xmms_ipc_transport_t
*ipct,
char
*buffer,
int
len);
34
xmms_socket_t
xmms_ipc_transport_fd_get
(
xmms_ipc_transport_t
*ipct);
35
xmms_ipc_transport_t
*
xmms_ipc_server_accept
(
xmms_ipc_transport_t
*ipct);
36
xmms_ipc_transport_t
*
xmms_ipc_client_init
(
const
char
*
path
);
37
xmms_ipc_transport_t
*
xmms_ipc_server_init
(
const
char
*
path
);
38
char
*
xmms_ipc_hostname
(
const
char
*
path
);
39
40
struct
xmms_ipc_transport_St
{
41
char
*
path
;
42
void
*
data
;
43
xmms_socket_t
fd
;
44
int32_t
peer
;
45
int16_t
peer_port
;
46
47
xmms_ipc_accept_func
accept_func
;
48
xmms_ipc_write_func
write_func
;
49
xmms_ipc_read_func
read_func
;
50
xmms_ipc_destroy_func
destroy_func
;
51
};
52
53
#endif
54
Generated by
1.8.3.1