syslog-ng source
grpc-signals.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2025 Databricks
3  * Copyright (c) 2025 David Tosovic <david.tosovic@databricks.com>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License version 2 as published
7  * by the Free Software Foundation, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  *
18  * As an additional exemption you are allowed to compile & link against the
19  * OpenSSL libraries as published by the OpenSSL project. See the file
20  * COPYING for details.
21  *
22  */
23 
24 #ifndef SIGNAL_SLOT_CONNECTOR_GRPC_SIGNALS_H_INCLUDED
25 #define SIGNAL_SLOT_CONNECTOR_GRPC_SIGNALS_H_INCLUDED
26 
28 #include <glib.h>
29 
30 typedef struct _GrpcMetadataRequestSignalData GrpcMetadataRequestSignalData;
31 typedef struct _GrpcResponseReceivedSignalData GrpcResponseReceivedSignalData;
32 
33 typedef enum
34 {
40 
42 {
44  GList *metadata_list;
45 };
46 
48 {
50  gint error_code;
51 };
52 
53 #define signal_grpc_metadata_request SIGNAL(grpc, metadata_request, GrpcMetadataRequestSignalData *)
54 
55 #define signal_grpc_response_received SIGNAL(grpc, response_received, GrpcResponseReceivedSignalData *)
56 
57 #endif
58 
GrpcSlotResultType
Definition: grpc-signals.h:34
@ GRPC_SLOT_RESOLVED
Definition: grpc-signals.h:36
@ GRPC_SLOT_PLUGIN_ERROR
Definition: grpc-signals.h:38
@ GRPC_SLOT_SUCCESS
Definition: grpc-signals.h:35
@ GRPC_SLOT_CRITICAL_ERROR
Definition: grpc-signals.h:37
Definition: grpc-signals.h:42
GList * metadata_list
Definition: grpc-signals.h:44
GrpcSlotResultType result
Definition: grpc-signals.h:43
Definition: grpc-signals.h:48
GrpcSlotResultType result
Definition: grpc-signals.h:49
gint error_code
Definition: grpc-signals.h:50