./configure wasnt happy if gsf is present but no wv. Its happy now. pkg-check-modules...
[beagle.git] / libbeagle / beagle / beagle-finished-response.c
blobb0bed1faafe5af1ad214d9ef82b6093acb74ea9a
1 /*
2 * beagle-finished-response.c
4 * Copyright (C) 2005 Novell, Inc.
6 */
8 /*
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
16 * The above copyright notice and this permission notice shall be included in
17 * all copies or substantial portions of the Software.
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25 * DEALINGS IN THE SOFTWARE.
28 #include <stdlib.h>
29 #include <sys/types.h>
30 #include <sys/socket.h>
31 #include <sys/un.h>
33 #include "beagle-finished-response.h"
35 typedef struct {
36 gint foo;
37 } BeagleFinishedResponsePrivate;
39 #define BEAGLE_FINISHED_RESPONSE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BEAGLE_TYPE_FINISHED_RESPONSE, BeagleFinishedResponsePrivate))
41 static BeagleResponseClass *parent_class = NULL;
43 G_DEFINE_TYPE (BeagleFinishedResponse, beagle_finished_response, BEAGLE_TYPE_RESPONSE)
45 static void
46 beagle_finished_response_finalize (GObject *obj)
48 if (G_OBJECT_CLASS (parent_class)->finalize)
49 G_OBJECT_CLASS (parent_class)->finalize (obj);
52 static void
53 beagle_finished_response_class_init (BeagleFinishedResponseClass *klass)
55 GObjectClass *obj_class = G_OBJECT_CLASS (klass);
57 parent_class = g_type_class_peek_parent (klass);
59 obj_class->finalize = beagle_finished_response_finalize;
62 g_type_class_add_private (klass, sizeof (BeagleFinishedResponsePrivate));
65 static void
66 beagle_finished_response_init (BeagleFinishedResponse *response)