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
10 * http://www.apache.org/licenses/LICENSE-2.0
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
20 #ifndef _SECOND_SERVICE_HANDLER_H
21 #define _SECOND_SERVICE_HANDLER_H
23 #include <glib-object.h>
26 #include "../gen-c_glib/t_test_second_service.h"
30 /* A handler that implements the TTestSecondServiceIf interface */
32 #define TYPE_SECOND_SERVICE_HANDLER (second_service_handler_get_type ())
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))
53 typedef struct _SecondServiceHandler SecondServiceHandler
;
54 typedef struct _SecondServiceHandlerClass SecondServiceHandlerClass
;
56 struct _SecondServiceHandler
{
57 TTestSecondServiceHandler parent
;
60 struct _SecondServiceHandlerClass
{
61 TTestSecondServiceHandlerClass parent
;
65 /* Used by SECOND_SERVICE_HANDLER_GET_TYPE */
66 GType
second_service_handler_get_type (void);
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
);
73 #endif /* _SECOND_SERVICE_HANDLER_H */