blob: 465f18ef43bf6a065c81f34abcf48e092908b351 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Gypsy
*
* A simple to use and understand GPSD replacement
* that uses D-Bus, GLib and memory allocations
*
* Author: Iain Holmes <iain@gnome.org>
* Copyright (C) 2007
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
#ifndef __GYPSY_SERVER_H__
#define __GYPSY_SERVER_H__
#include <glib-object.h>
G_BEGIN_DECLS
#define GYPSY_SERVER_ERROR gypsy_server_error_quark ()
#define GYPSY_TYPE_SERVER (gypsy_server_get_type ())
typedef enum {
GYPSY_SERVER_ERROR_NO_CLIENT,
} GypsyServerError;
typedef struct _GypsyServer {
GObject parent_object;
} GypsyServer;
typedef struct _GypsyServerClass {
GObjectClass parent_class;
void (*terminate) (GypsyServer *server);
} GypsyServerClass;
GType gypsy_server_get_type (void);
void gypsy_server_remove_clients (GypsyServer *gps,
const char *prev_owner);
G_END_DECLS
#endif
|