blob: c2dd1951559f3376f9db686b11b6d27c7888e14e [file] [log] [blame]
Jeff Dikecd1ae0e2007-10-16 01:27:29 -07001/*
2 * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
Linus Torvalds1da177e2005-04-16 15:20:36 -07003 * Licensed under the GPL
4 */
5
Jeff Dikecd1ae0e2007-10-16 01:27:29 -07006#ifndef __DAEMON_H__
7#define __DAEMON_H__
8
Al Viro37185b32012-10-08 03:27:32 +01009#include <net_user.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070010
11#define SWITCH_VERSION 3
12
13struct daemon_data {
14 char *sock_type;
15 char *ctl_sock;
16 void *ctl_addr;
17 void *data_addr;
18 void *local_addr;
19 int fd;
20 int control;
21 void *dev;
22};
23
Jeff Dike5e7672e2006-09-27 01:50:33 -070024extern const struct net_user_info daemon_user_info;
Linus Torvalds1da177e2005-04-16 15:20:36 -070025
Jeff Dikecd1ae0e2007-10-16 01:27:29 -070026extern int daemon_user_write(int fd, void *buf, int len,
Linus Torvalds1da177e2005-04-16 15:20:36 -070027 struct daemon_data *pri);
28
Jeff Dikecd1ae0e2007-10-16 01:27:29 -070029#endif