1 /* 2 * AIDE (Advanced Intrusion Detection Environment) 3 * 4 * Copyright (C) 2002, 2006, 2019-2020 Rami Lehti, Pablo Virolainen, 5 * Richard van den Berg, Hannes von Haugwitz 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License as 9 * published by the Free Software Foundation; either version 2 of the 10 * License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, but 13 * WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License along 18 * with this program; if not, write to the Free Software Foundation, Inc., 19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20 */ 21 22 #ifndef _URL_H_INCLUDED 23 #define _URL_H_INCLUDED 24 25 typedef enum { 26 url_file = 1, 27 url_stdout, 28 url_stdin, 29 url_stderr, 30 url_fd, 31 url_ftp, 32 url_http, 33 url_https, 34 url_syslog, 35 } URL_TYPE; 36 37 typedef struct url_t { 38 /* Everything before the first ':' */ 39 URL_TYPE type; 40 char* value; 41 void* data; /* We might want to pass some list's to multiwriter */ 42 } url_t; 43 44 URL_TYPE get_url_type(char *); 45 46 const char* get_url_type_string(URL_TYPE); 47 48 #endif 49