Commit 7ba4e51c authored by Aurelio Colosimo's avatar Aurelio Colosimo Committed by Alessandro Rubini

time-wrs: new directory

In this first commit, time-wrs will behave the same as time-unix.
More functions will be added by the next commits.
Signed-off-by: Aurelio Colosimo's avatarAurelio Colosimo <aurelio@aureliocolosimo.it>
parent bb10f2b4
# Aurelio Colosimo for CERN, 2013 -- public domain
OBJ-libarch += \
time-wrs/wrs-time.o \
time-wrs/wrs-socket.o
/*
* Aurelio Colosimo for CERN, 2013 -- public domain
*/
#include <ppsi/ppsi.h>
#include <unix-time.h>
struct pp_network_operations wrs_net_ops = {
.init = unix_net_init,
.exit = unix_net_exit,
.recv = unix_net_recv,
.send = unix_net_send,
};
/*
* Aurelio Colosimo for CERN, 2013 -- public domain
*/
#include <ppsi/ppsi.h>
#include <unix-time.h>
struct pp_time_operations wrs_time_ops = {
.get = unix_time_get,
.set = unix_time_set,
.adjust = unix_time_adjust,
.adjust_offset = unix_time_adjust_offset,
.adjust_freq = unix_time_adjust_freq,
.calc_timeout = unix_calc_timeout,
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment