// Copyright, 2001-2003, Astra Network Inc.  All Rights Reserved

// This source code has been published by Astra Network Inc. However, any
// use, reproduction, modification, distribution or transfer of this
// software, or any software which includes or is based upon any of this
// code, is only permitted if expressly authorized by a written license
// agreement from Astra. Contact your Astra representative directly for
// more information.


#include <olmod.h>
#include <time.h>

olmod_error_t
curtime_module_init ()
{
  return kMod_OK;
}

olmod_blackbox_t /*@null@ */  *
curtime_module_inst (pid_t /*@unused@ */ process,
		     olmod_arglist_t /*@unused@ */  * static_args)
{
  return (olmod_blackbox_t *) NULL;
}

olmod_error_t
curtime_module_set (olmod_blackbox_t /*@unused@ */  * data,
		    int64_t /*@unused@ */ var)
{
  return kMod_OK;
}

int64_t
curtime_module_get (olmod_blackbox_t /*@unused@ */  * data,
		    olmod_arglist_t /*@unused@ */  * dynamic_args)
{
  return LTOQ (time (NULL));
}

void
curtime_module_deinst (olmod_blackbox_t /*@unused@ */  * data)
{
}

void
curtime_module_deinit ()
{
}
