]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/thrift/test/c_glib/src/thrift_second_service_handler.h
buildsys: switch source download to quincy
[ceph.git] / ceph / src / jaegertracing / thrift / test / c_glib / src / thrift_second_service_handler.h
1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20 #ifndef _SECOND_SERVICE_HANDLER_H
21 #define _SECOND_SERVICE_HANDLER_H
22
23 #include <glib-object.h>
24 #include <stdio.h>
25
26 #include "../gen-c_glib/t_test_second_service.h"
27
28 G_BEGIN_DECLS
29
30 /* A handler that implements the TTestSecondServiceIf interface */
31
32 #define TYPE_SECOND_SERVICE_HANDLER (second_service_handler_get_type ())
33
34 #define SECOND_SERVICE_HANDLER(obj) \
35 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
36 TYPE_SECOND_SERVICE_HANDLER, \
37 SecondServiceHandler))
38 #define IS_SECOND_SERVICE_HANDLER(obj) \
39 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
40 TYPE_SECOND_SERVICE_HANDLER))
41 #define SECOND_SERVICE_HANDLER_CLASS(c) \
42 (G_TYPE_CHECK_CLASS_CAST ((c), \
43 TYPE_SECOND_SERVICE_HANDLER, \
44 SecondServiceHandlerClass))
45 #define IS_SECOND_SERVICE_HANDLER_CLASS(c) \
46 (G_TYPE_CHECK_CLASS_TYPE ((c), \
47 TYPE_SECOND_SERVICE_HANDLER))
48 #define SECOND_SERVICE_HANDLER_GET_CLASS(obj) \
49 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
50 TYPE_SECOND_SERVICE_HANDLER, \
51 SecondServiceHandlerClass))
52
53 typedef struct _SecondServiceHandler SecondServiceHandler;
54 typedef struct _SecondServiceHandlerClass SecondServiceHandlerClass;
55
56 struct _SecondServiceHandler {
57 TTestSecondServiceHandler parent;
58 };
59
60 struct _SecondServiceHandlerClass {
61 TTestSecondServiceHandlerClass parent;
62
63 };
64
65 /* Used by SECOND_SERVICE_HANDLER_GET_TYPE */
66 GType second_service_handler_get_type (void);
67
68 gboolean second_service_handler_blah_blah (TTestSecondServiceIf *iface, GError **error);
69 gboolean second_service_handler_secondtest_string (TTestSecondServiceIf *iface, gchar ** _return, const gchar * thing, GError **error);
70
71 G_END_DECLS
72
73 #endif /* _SECOND_SERVICE_HANDLER_H */