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
59
60
61
62
63
64
65
66
|
/* vim: set et ts=8 sw=8: */
/* gclue-enum.h
*
* Copyright 2013 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see
* <http://www.gnu.org/licenses/>.
*
* Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
*/
#ifndef GCLUE_ENUMS_H
#define GCLUE_ENUMS_H
#include <glib.h>
G_BEGIN_DECLS
/**
* GClueAccuracyLevel:
* @GCLUE_ACCURACY_LEVEL_NONE: Accuracy level unknown or unset.
* @GCLUE_ACCURACY_LEVEL_COUNTRY: Country-level accuracy.
* @GCLUE_ACCURACY_LEVEL_CITY: City-level accuracy.
* @GCLUE_ACCURACY_LEVEL_NEIGHBORHOOD: neighborhood-level accuracy.
* @GCLUE_ACCURACY_LEVEL_STREET: Street-level accuracy.
* @GCLUE_ACCURACY_LEVEL_EXACT: Exact accuracy. Typically requires GPS receiver.
*
* Used to specify level of accuracy requested by, or allowed for a client.
**/
typedef enum {/*< underscore_name=gclue_accuracy_level>*/
GCLUE_ACCURACY_LEVEL_NONE = 0,
GCLUE_ACCURACY_LEVEL_COUNTRY = 1,
GCLUE_ACCURACY_LEVEL_CITY = 4,
GCLUE_ACCURACY_LEVEL_NEIGHBORHOOD = 5,
GCLUE_ACCURACY_LEVEL_STREET = 6,
GCLUE_ACCURACY_LEVEL_EXACT = 8,
} GClueAccuracyLevel;
const char *gclue_accuracy_level_get_string (GClueAccuracyLevel val);
/**
* GClueClientProxyCreateFlags:
* @GCLUE_CLIENT_PROXY_CREATE_NONE: Empty set of create flags
* @GCLUE_CLIENT_PROXY_CREATE_AUTO_DELETE:
* Automatically delete the client from the server when the #GClueClient is
* destroyed. This flag should usually be set.
**/
typedef enum {/*< underscore_name=gclue_client_proxy_create_flags>*/
GCLUE_CLIENT_PROXY_CREATE_NONE = 0,
GCLUE_CLIENT_PROXY_CREATE_AUTO_DELETE = 1 << 0,
} GClueClientProxyCreateFlags;
G_END_DECLS
#endif /* GCLUE_ENUMS_H */
|