Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

subnet.c File Reference

#include "model.h"

Functions

int32_t aw_model_subnet_create (aw_model_t *model, const aw_model_userhandle_t *handle, const byte_t *netmask)
 Create a subnet record with assoc netmask.

int32_t aw_model_subnet_list (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t deleted, aw_model_subnet_listing_t *subnet_listing)
 Itertator to fill listing with data from subnet table. Call subnet_listing->iter.next() until <= 0 .

int32_t aw_model_subnet_update (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t subnetid, u_int32_t active, u_int32_t deleted)
 Update subnet record.


Function Documentation

int32_t aw_model_subnet_create (  aw_model_t *  model,
const aw_model_userhandle_t *  handle,
const byte_t *  netmask
) 
 

Create a subnet record with assoc netmask.

aw_model_subnet_create

Parameters:
model Model object
handle Handle object for current user
netmask Netmask of subnet
Returns:
<=0 on error, else id of subnet record

int32_t aw_model_subnet_list (  aw_model_t *  model,
const aw_model_userhandle_t *  handle,
u_int32_t  deleted,
aw_model_subnet_listing_t *  subnet_listing
) 
 

Itertator to fill listing with data from subnet table. Call subnet_listing->iter.next() until <= 0 .

aw_model_subnet_list

Parameters:
model Model object
handle Handle object for current user
deleted If non-zero, then return users marked deleted
subnet_listing Listing object to be filled
Returns:
0 on data and -1 on error

int32_t aw_model_subnet_update (  aw_model_t *  model,
const aw_model_userhandle_t *  handle,
u_int32_t  subnetid,
u_int32_t  active,
u_int32_t  deleted
) 
 

Update subnet record.

aw_model_subnet_update

Parameters:
model Model object
handle Handle object for current subnet
subnetid Which record
active Set active to this
deleted Set deleted to this
Returns:
Non-zero on error

Aware 0.11.1 Copyright (C) 1998-2005 Russell Leighton (russ@elegant-software.com)