summaryrefslogtreecommitdiff
path: root/components/schedule
diff options
context:
space:
mode:
authorMagnus Feuer <mfeuer@jaguarlandrover.com>2015-03-09 15:54:51 -0700
committerMagnus Feuer <mfeuer@jaguarlandrover.com>2015-03-16 09:01:38 -0700
commit8a7e5914cb78052549e685fce24bdaab60a2a00c (patch)
treee2846ceebc0939d13d557736d60a29b9235b84e6 /components/schedule
parentb6d4329eeed6a8c9db29220dbc43af4544bfe9ce (diff)
downloadrvi_core-8a7e5914cb78052549e685fce24bdaab60a2a00c.tar.gz
First, non-compilable stab
Diffstat (limited to 'components/schedule')
-rw-r--r--components/schedule/src/rvi_schedule.erl24
-rw-r--r--components/schedule/src/schedule.erl2
2 files changed, 26 insertions, 0 deletions
diff --git a/components/schedule/src/rvi_schedule.erl b/components/schedule/src/rvi_schedule.erl
new file mode 100644
index 0000000..7019a46
--- /dev/null
+++ b/components/schedule/src/rvi_schedule.erl
@@ -0,0 +1,24 @@
+%%
+%% Copyright (C) 2014, Jaguar Land Rover
+%%
+%% This program is licensed under the terms and conditions of the
+%% Mozilla Public License, version 2.0. The full text of the
+%% Mozilla Public License is at https://www.mozilla.org/MPL/2.0/
+%%
+
+-module(rvi_schedule).
+
+-callback schedule_message(SvcName :: string(),
+ Timeout :: integer(),
+ Callback :: mfa(),
+ Parameters :: any(),
+ Signature :: string(),
+ Certificate :: string()).
+
+
+-callback register_remote_service(NetworkAddress :: string(),
+ AvailableServices :: string()).
+
+-callback unregister_remote_service(ServiceNames :: string()).
+
+
diff --git a/components/schedule/src/schedule.erl b/components/schedule/src/schedule.erl
index b7fcef2..607ca0d 100644
--- a/components/schedule/src/schedule.erl
+++ b/components/schedule/src/schedule.erl
@@ -10,6 +10,7 @@
-behaviour(gen_server).
+-behaviour(rvi_schedule).
-include_lib("lager/include/log.hrl").
%% API
@@ -93,6 +94,7 @@ init([]) ->
[ set, private,
{ keypos, #service.name } ])}}.
+
schedule_message(SvcName,
Timeout,
Callback,