File: mod_netctl.h

package info (click to toggle)
irmp3 0.4.3pre6-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 584 kB
  • ctags: 374
  • sloc: ansic: 3,955; makefile: 212; pascal: 39
file content (31 lines) | stat: -rw-r--r-- 828 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*************************************************************************
 * $Id: mod_netctl.h,v 1.3 2000/06/27 01:40:43 dpotter Exp $
 *
 * mod_netctl.h - a server module for network control of IRMP3
 *
 * Copyright (C) 2000 by David E. Potter <dp-irmp3@dpotter.com>
 *
 */

#ifndef __MOD_NETCTL_H__
#define __MOD__NETCTL_H__

void mod_netctl_message (int msgtype, char *msg);
char *mod_netctl_init (void);
void mod_netctl_deinit (void);
int mod_netctl_net_setup (void);
void mod_netctl_poll(int fd);
void mod_netctl_new_client(int newsockfd);
void mod_netctl_disc_client(int socket);
int mod_netctl_regex_match(regex_t *preg, char *string);

typedef struct filter {
	int enabled;
	regex_t regx;
} filter_t;

#endif /* __MOD_NETCTL_H__ */

/*************************************************************************
 * EOF
 */