summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/libslp-lbs-plugin-replay.spec4
-rw-r--r--replay-plugin/src/gps_plugin_replay.c6
2 files changed, 10 insertions, 0 deletions
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,