forked from bjonica/mochad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.h
52 lines (37 loc) · 1.37 KB
/
global.h
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* Copyright 2010-2011 Brian Uechi <buasst@gmail.com>
*
* This file is part of mochad.
*
* mochad is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version.
*
* mochad is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with mochad. If not, see <http://www.gnu.org/licenses/>.
*/
struct SecEventRec {
unsigned char funct;
const char *name;
};
int Cm19a;
int PollTimeOut;
/* 1 bit per house code, 1=RF to PL, 0=off, default all house codes on */
unsigned short RfToPl16;
unsigned short RfToRf16;
#define dbprintf(fmt, ...) _dbprintf(fmt, __FILE__,__LINE__, ## __VA_ARGS__)
int _dbprintf(const char *fmt, ...);
int write_usb(unsigned char *buf, size_t len);
int statusprintf(int fd, const char *fmt, ...);
int sockprintf(int fd, const char *fmt, ...);
void hexdump(void *p, size_t len);
void sockhexdump(int fd, void *p, size_t len);
void mh_sockhexdump(int fd, void *p, size_t len);
int or20client(int fd);
int del_client(int fd);