root/trunk/docs/example-plugin/README

Revision 3691, 1.1 KB (checked in by bricks, 7 weeks ago)

Updated exmaple-format-plugin for current trunk

Line 
1Hi,
2
3so you are interested in writing a plugin for the
4OpenSync synchronization framework... Great! :)
5
6Here is what you have to do:
7
8Edit the files
9
10AUTHORS
11INSTALL
12LICENSE
13
14and fill in the required information. Then edit:
15
16CMakeLists.txt
17
18and add any checks, dependencies (FIND_PACKAGE(...) statements), etc that you need for you plugin
19to function.
20
21Then go to src/ and edit:
22
23CMakeLists.txt
24
25there to suit your needs and include the necessary library paths. Afterwards take a look at the example
26source files of the sync plugin
27
28plugin.c
29plugin.h
30
31and start writing the functions you need to connect, read and write
32etc to your device.
33
34Then edit the default config file which must be the same name
35as your plugin:
36
37plugin-name
38
39if you need to write a format plugin take a look at
40
41format.c
42
43Afterwards create a build directory in any location you like and run:
44
45cmake -DCMAKE_BUILD_PREFIX=/path/to/the/install/dir /path/to/example_plugin
46make
47make install
48
49If you need help, feel free to ask on the opensync mailing lists:
50http://sourceforge.net/projects/opensync and go to "Lists"
51
52or ask on our irc channel:
53server: irc.freenode.org
54channel: #opensync
Note: See TracBrowser for help on using the browser.