// 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>

typedef struct %%module %% _data_s
{

}
%%module %% _data_t;


olmod_error_t %% module %% _module_init ()
{
  return kMod_OK;
}

olmod_blackbox_t *%%module %%
_module_inst (pid_t process, olmod_arglist_t * static_args)
{
  %%module %% _data_t * blackbox;

  if (!
      (blackbox =
       (%%module %% _data_t *) malloc (sizeof (%%module %% _data_t))))
    {
      printf ("mod_%%module%%: malloc failed\n");
      return NULL;
    }

  return blackbox;
}

olmod_error_t %% module %% _module_set (olmod_blackbox_t * data, int64_t var)
{
  return kMod_OK;
}

int64_t %% module %% _module_get (olmod_blackbox_t * data,
				  olmod_arglist_t * dynamic_args)
{
  %%module %% _data_t * blackbox = (%%module %% _data_t *) data;

  return 0;
}

void %%module %%
_module_deinst (olmod_blackbox_t * data)
{
  free (data);
}

void %%module %%
_module_deinit ()
{
}
