syslog-ng source
http-signals.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2002-2019 One Identity
3  * Copyright (c) 2019 Laszlo Budai <laszlo.budai@oneidentity.com>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library 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 GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  *
19  * As an additional exemption you are allowed to compile & link against the
20  * OpenSSL libraries as published by the OpenSSL project. See the file
21  * COPYING for details.
22  *
23  */
24 
25 #ifndef SIGNAL_SLOT_CONNECTOR_HTTP_SIGNALS_H_INCLUDED
26 #define SIGNAL_SLOT_CONNECTOR_HTTP_SIGNALS_H_INCLUDED
27 
29 #include "list-adt.h"
30 
31 typedef struct _HttpHeaderRequestSignalData HttpHeaderRequestSignalData;
32 typedef struct _HttpResponseReceivedSignalData HttpResponseReceivedSignalData;
33 
34 typedef enum
35 {
41 
43 {
46  GString *request_body;
47 };
48 
50 {
52  glong http_code;
53 };
54 
55 #define signal_http_header_request SIGNAL(http, header_request, HttpHeaderRequestSignalData *)
56 
57 #define signal_http_response_received SIGNAL(http, response_received, HttpResponseReceivedSignalData *)
58 
59 #endif
HttpSlotResultType
Definition: http-signals.h:35
@ HTTP_SLOT_CRITICAL_ERROR
Definition: http-signals.h:38
@ HTTP_SLOT_PLUGIN_ERROR
Definition: http-signals.h:39
@ HTTP_SLOT_RESOLVED
Definition: http-signals.h:37
@ HTTP_SLOT_SUCCESS
Definition: http-signals.h:36
Definition: http-signals.h:43
GString * request_body
Definition: http-signals.h:46
List * request_headers
Definition: http-signals.h:45
HttpSlotResultType result
Definition: http-signals.h:44
Definition: http-signals.h:50
HttpSlotResultType result
Definition: http-signals.h:51
glong http_code
Definition: http-signals.h:52