Free resources in rsa_t.
[oweals/tinc.git] / src / control_common.h
1 /*
2     control_protocol.h -- control socket protocol.
3     Copyright (C) 2007 Scott Lamb <slamb@slamb.org>
4
5     This program is free software; you can redistribute it and/or modify
6     it under the terms of the GNU General Public License as published by
7     the Free Software Foundation; either version 2 of the License, or
8     (at your option) any later version.
9
10     This program is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13     GNU General Public License for more details.
14
15     You should have received a copy of the GNU General Public License along
16     with this program; if not, write to the Free Software Foundation, Inc.,
17     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20 #ifndef __TINC_CONTROL_PROTOCOL_H__
21 #define __TINC_CONTROL_PROTOCOL_H__
22
23 #include "protocol.h"
24
25 enum request_type {
26         REQ_INVALID = -1,
27         REQ_STOP = 0,
28         REQ_RELOAD,
29         REQ_RESTART,
30         REQ_DUMP_NODES,
31         REQ_DUMP_EDGES,
32         REQ_DUMP_SUBNETS,
33         REQ_DUMP_CONNECTIONS,
34         REQ_DUMP_GRAPH,
35         REQ_PURGE,
36         REQ_SET_DEBUG,
37         REQ_RETRY,
38         REQ_CONNECT,
39         REQ_DISCONNECT,
40 };
41
42 #define TINC_CTL_VERSION_CURRENT 0
43
44 #endif