From 17b2aa1f9323d5cb0aef501a014c75b25d52b81c Mon Sep 17 00:00:00 2001 From: Nandan SR Date: Mon, 16 Sep 2013 15:03:53 +0530 Subject: Changing the spec file to add license changes and addition of comments Signed-off-by: Nandan SR --- packaging/libslp-lbs-plugin-replay.spec | 4 ++++ replay-plugin/src/gps_plugin_replay.c | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/packaging/libslp-lbs-plugin-replay.spec b/packaging/libslp-lbs-plugin-replay.spec index c8ec68b..6296502 100644 --- a/packaging/libslp-lbs-plugin-replay.spec +++ b/packaging/libslp-lbs-plugin-replay.spec @@ -28,6 +28,9 @@ make %{?jobs:-j%jobs} %install rm -rf %{buildroot} +mkdir -p %{buildroot}/usr/share/license +cp %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name} + %make_install mkdir -p %{buildroot}%{DATADIR}/replay @@ -39,6 +42,7 @@ ln -sf /usr/lib/libSLP-lbs-plugin-replay.so /usr/lib/libSLP-lbs-plugin.so %files %manifest libslp-lbs-plugin-replay.manifest +/usr/share/license/%{name} %defattr(-,root,root,-) %{_libdir}/libSLP-lbs-plugin-replay.so %{_libdir}/libSLP-lbs-plugin-replay.so.* diff --git a/replay-plugin/src/gps_plugin_replay.c b/replay-plugin/src/gps_plugin_replay.c index 343fa6f..cc508a5 100644 --- a/replay-plugin/src/gps_plugin_replay.c +++ b/replay-plugin/src/gps_plugin_replay.c @@ -56,6 +56,12 @@ int gps_plugin_replay_gps_init(gps_event_cb gps_event_cb, gps_server_param_t * g int gps_plugin_replay_gps_deinit(gps_failure_reason_t * reason_code); int gps_plugin_replay_gps_request(gps_action_t gps_action, void *data, gps_failure_reason_t * reason_code); +/* +This is the interface that will be given to the gps-manager to call the API's of this plug-in module. +Init is called immediately after loading the plugin. +Deinit is called during the shut-down. +Request is called with specific parameter for the required operations. +*/ static const gps_plugin_interface g_gps_plugin_replay_interface = { gps_plugin_replay_gps_init, gps_plugin_replay_gps_deinit, -- cgit v1.2.3