1
0
forked from extern/alertik

Remove alertik.h header

This commit is contained in:
Davidson Francis 2024-08-03 21:59:57 -03:00
parent b9d2587f20
commit 042aa4e701
7 changed files with 4 additions and 21 deletions

View File

@ -7,7 +7,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <pthread.h> #include <pthread.h>
#include "alertik.h"
#include "events.h" #include "events.h"
#include "env_events.h" #include "env_events.h"
#include "log.h" #include "log.h"

View File

@ -1,16 +0,0 @@
/*
* Alertik: a tiny 'syslog' server & notification tool for Mikrotik routers.
* This is free and unencumbered software released into the public domain.
*/
#ifndef ALERTIK_H
#define ALERTIK_H
#include <time.h>
#define MIN(a,b) (((a)<(b))?(a):(b))
extern char *get_formatted_time(time_t time, char *time_str);
extern void log_msg(const char *fmt, ...);
#endif /* ALERTIK_H */

View File

@ -13,7 +13,6 @@
#include "log.h" #include "log.h"
#include "events.h" #include "events.h"
#include "env_events.h" #include "env_events.h"
#include "alertik.h"
#include "notifiers.h" #include "notifiers.h"
#include "str.h" #include "str.h"

View File

@ -8,8 +8,8 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <time.h>
#include "events.h" #include "events.h"
#include "alertik.h"
#include "notifiers.h" #include "notifiers.h"
#include "log.h" #include "log.h"
#include "str.h" #include "str.h"
@ -18,6 +18,8 @@
* Static events * Static events
*/ */
#define MIN(a,b) (((a)<(b))?(a):(b))
/* Misc. */ /* Misc. */
#define MAX_MATCHES 32 #define MAX_MATCHES 32
static regmatch_t pmatch[MAX_MATCHES]; static regmatch_t pmatch[MAX_MATCHES];

View File

@ -10,7 +10,6 @@
#include "log.h" #include "log.h"
#include "notifiers.h" #include "notifiers.h"
#include "alertik.h"
#include "str.h" #include "str.h"
/* /*

1
str.c
View File

@ -36,7 +36,6 @@
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <ctype.h>
/* ========================================================================= */ /* ========================================================================= */
/* BUFFER ROUTINES */ /* BUFFER ROUTINES */

View File

@ -5,6 +5,7 @@
#include <pthread.h> #include <pthread.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>