Use symlinks instead of copying header files
[connman] / include / storage.h
1 /*
2  *
3  *  Connection Manager
4  *
5  *  Copyright (C) 2007-2009  Intel Corporation. All rights reserved.
6  *
7  *  This program is free software; you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License version 2 as
9  *  published by the Free Software Foundation.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program; if not, write to the Free Software
18  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19  *
20  */
21
22 #ifndef __CONNMAN_STORAGE_H
23 #define __CONNMAN_STORAGE_H
24
25 #include <connman/device.h>
26 #include <connman/network.h>
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31
32 /**
33  * SECTION:storage
34  * @title: Storage premitives
35  * @short_description: Functions for registering storage modules
36  */
37
38 #define CONNMAN_STORAGE_PRIORITY_LOW      -100
39 #define CONNMAN_STORAGE_PRIORITY_DEFAULT     0
40 #define CONNMAN_STORAGE_PRIORITY_HIGH      100
41
42 struct connman_storage {
43         const char *name;
44         int priority;
45         enum connman_device_type device_type;
46         int (*device_init) (void);
47         int (*device_load) (struct connman_device *device);
48         int (*device_save) (struct connman_device *device);
49         enum connman_network_type network_type;
50         int (*network_init) (struct connman_device *device);
51         int (*network_load) (struct connman_network *network);
52         int (*network_save) (struct connman_network *network);
53 };
54
55 extern int connman_storage_register(struct connman_storage *storage);
56 extern void connman_storage_unregister(struct connman_storage *storage);
57
58 #ifdef __cplusplus
59 }
60 #endif
61
62 #endif /* __CONNMAN_STORAGE_H */