-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmid.h
44 lines (35 loc) · 1.32 KB
/
mid.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
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 2; c-brace-offset: -2; c-argdecl-indent: 2 -*- */
/* paclink-unix client for the Winlink 2000 ham radio email system.
*
* Copyright 2006 Nicholas S. Castellano <n2qz@arrl.net> and others,
* See the file AUTHORS for a list.
*
* This program 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 2 of the License, or
* (at your option) any later version.
*
* This program 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 this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
*
*/
/* $Id$ */
#ifndef MID_H
#define MID_H
#ifndef bool
#include <stdbool.h>
#endif /* bool */
#define MID_MAXLEN 12
#define MID_DB_MODE 0660
#define MID_EXPIREDAYS 30
int record_mid(char *mid);
int check_mid(char *mid);
int expire_mids(void);
char *generate_mid(const char *callsign, bool bRecordMid);
#endif