2 * ossp-slave - OSS Proxy: Common codes for slaves
4 * Copyright (C) 2008-2010 SUSE Linux Products GmbH
5 * Copyright (C) 2008-2010 Tejun Heo <tj@kernel.org>
7 * This file is released under the GPLv2.
14 #include "ossp-util.h"
16 #define OSSP_USER_NAME_LEN 128
18 extern char ossp_user_name
[OSSP_USER_NAME_LEN
];
19 extern int ossp_cmd_fd
, ossp_notify_fd
;
20 extern void *ossp_mmap_addr
[2];
21 extern struct ossp_transfer
*ossp_mmap_transfer
;
23 void ossp_slave_init(int argc
, char **argv
);
24 int ossp_slave_process_command(int cmd_fd
,
25 ossp_action_fn_t
const *action_fn_tbl
,
26 int (*action_pre_fn
)(void),
27 void (*action_post_fn
)(void));
29 #endif /* _OSSP_SLAVE_H */