Tizen 2.0 release
[framework/connectivity/obexd.git] / client / opp.c
1 /*
2  *
3  *  OBEX Client
4  *
5  *  Copyright (C) 2011 Intel Corporation
6  *
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program; if not, write to the Free Software
20  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21  *
22  */
23
24 #ifdef HAVE_CONFIG_H
25 #include <config.h>
26 #endif
27
28 #include <gdbus.h>
29
30 #include "log.h"
31
32 #include "transfer.h"
33 #include "session.h"
34 #include "driver.h"
35 #include "opp.h"
36
37 #define OPP_UUID "00001105-0000-1000-8000-00805f9b34fb"
38
39 static struct obc_driver opp = {
40         .service = "OPP",
41         .uuid = OPP_UUID,
42 };
43
44 int opp_init(void)
45 {
46         DBG("");
47
48         return obc_driver_register(&opp);
49 }
50
51 void opp_exit(void)
52 {
53         DBG("");
54
55         obc_driver_unregister(&opp);
56 }