upload tizen1.0 source
[profile/ivi/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 "log.h"
29
30 #include "session.h"
31 #include "driver.h"
32 #include "opp.h"
33
34 #define OPP_UUID "00001105-0000-1000-8000-00805f9b34fb"
35
36 static struct obc_driver opp = {
37         .service = "OPP",
38         .uuid = OPP_UUID,
39 };
40
41 int opp_init(void)
42 {
43         DBG("");
44
45         return obc_driver_register(&opp);
46 }
47
48 void opp_exit(void)
49 {
50         DBG("");
51
52         obc_driver_unregister(&opp);
53 }