shrink nrmessage

This commit is contained in:
Enno Rehling 2018-05-18 08:34:00 +02:00
parent 810bf3b40a
commit 26dc593ddb
2 changed files with 7 additions and 18 deletions

View File

@ -13,7 +13,6 @@
#include <platform.h>
#include "nrmessage.h"
#include "nrmessage_struct.h"
/* util includes */
#include "log.h"
@ -27,6 +26,13 @@
#include <string.h>
#include <stdlib.h>
typedef struct nrmessage_type {
const struct message_type *mtype;
char *vars;
struct nrmessage_type *next;
const char *section;
} nrmessage_type;
#define NRT_MAXHASH 1021
static nrmessage_type *nrtypes[NRT_MAXHASH];

View File

@ -1,17 +0,0 @@
#ifndef CLASS_NRMESSAGE_STRUCT
#define CLASS_NRMESSAGE_STRUCT
/* This file should not be included by anything in the server. If you
* feel that you need to include it, it's a sure sign that you're trying to
* do something BAD. */
typedef struct nrmessage_type {
const struct message_type *mtype;
char *vars;
struct nrmessage_type *next;
const char *section;
} nrmessage_type;
extern nrmessage_type *get_nrmessagetypes(void);
#endif