keep private enum definition local to the management code

This commit is contained in:
Hamish Coleman 2021-11-28 22:13:47 +11:00
parent e3899d1b76
commit 3fd1dc5fa8
3 changed files with 10 additions and 5 deletions

View File

@ -121,11 +121,6 @@ enum sn_purge {SN_PURGEABLE = 0, SN_UNPURGEABLE = 1};
#define N2N_EDGE_MGMT_PORT 5644 #define N2N_EDGE_MGMT_PORT 5644
#define N2N_SN_MGMT_PORT 5645 #define N2N_SN_MGMT_PORT 5645
enum n2n_mgmt_type {
N2N_MGMT_READ = 0,
N2N_MGMT_WRITE = 1,
};
#define N2N_MGMT_PASSWORD "n2n" /* default password for management port access (so far, json only) */ #define N2N_MGMT_PASSWORD "n2n" /* default password for management port access (so far, json only) */

View File

@ -19,6 +19,11 @@
#include "n2n.h" #include "n2n.h"
#include "edge_utils_win32.h" #include "edge_utils_win32.h"
enum n2n_mgmt_type {
N2N_MGMT_READ = 0,
N2N_MGMT_WRITE = 1,
};
/* /*
* Everything needed to reply to a request * Everything needed to reply to a request
*/ */

View File

@ -26,6 +26,11 @@
int load_allowed_sn_community (n2n_sn_t *sss); /* defined in sn_utils.c */ int load_allowed_sn_community (n2n_sn_t *sss); /* defined in sn_utils.c */
enum n2n_mgmt_type {
N2N_MGMT_READ = 0,
N2N_MGMT_WRITE = 1,
};
#define FLAG_WROK 1 #define FLAG_WROK 1
typedef struct mgmt_handler { typedef struct mgmt_handler {
int flags; int flags;