Content-type: text/html Manpage of listlib

listlib

Section: C Library Functions (3)
Updated: 2 September 1999
Index Return to Main Contents
 

Non Functional

This library is non-functional and information on it is included for reference purposes only.
 

NAME

find_free_slot, add_item_to_list, remove_item_from_list, get_list_item_by_name, get_list_item_by_index, compare_lists, copy_list, move_list, compact_list, delete_list, save_list, load_list_recursive, load_list, read_list_item, write_list_item_by_name, write_list_item_by_index, PIPPA_sd_can, xlcopy, xlfree, exec_method  

SYNOPSIS

int find_free_slot
(
       int *free_slot,

       list_type *list

);

int add_item_to_list
(
       char *name,

       char *type,

       int size,

       void *item,

       list_type *list

);

int remove_item_from_list
(
       void *item,

       list_type *list

);

void *get_list_item_by_name
(
       char *name,

       int *size,

       char *type,

       int *index,

       list_type *list

);

void *get_list_item_by_index
(
       int index,

       int *size,

       char *type,

       char *name,

       list_type *list

);

list_type *compare_lists
(
       char *diff_name,

       int *match_info,

       list_type *list_1,

       list_type *list_2

);

list_type *copy_list(list_type *from_list);

list_type *move_list
(
       list_type *to_list,

       list_type *from_list

);

int compact_list(list_type *list);

int delete_list(list_type *list);

int save_list
(
       int save_des,

       list_type *list

);

list_type *load_list_recursive
(
       int load_des,

       list_type *list,

       list_type *recursor

);

int load_list
(
       int load_des,

       list_type *list

);

int read_list_item
(
       int load_des,

       int item_data,

       int size,

       char *type,

       list_type *list

);

int write_list_item_by_name
(
       int save_des,

       char *name,

       int item_data,

       list_type *list

);

int write_list_item_by_index
(
       int save_des,

       int index,

       int item_data,

       list_type *list

);

int PIPPA_sd_can
(
       list_type *old_list,

       list_type *new_list,

       list_type *in_list,

       list_type *out_list,

       char *directory_name

);

void *xlcopy
(
       int mode,

       long size,

       void *item

);

void xlfree(void *item);

int exec_method
(
       int index,

       list_type *list

);
 

PARAMETERS

int *free_slot
Index of first free slot.
list_type *list      (find_free_slot)
List pointer.
char *name   (add_item_to_list)
Object name.
char *type   (add_item_to_list)
Object type data.
int size     (add_item_to_list)
Object size.
void *item   (add_item_to_list)
Object to add to list.
void *item   (remove_item_from_list)
Item to remove.
char *name   (get_list_item_by_name)
Name of item.
int *size    (get_list_item_by_name)
Size of item in bytes.
char *type   (get_list_item_by_name)
Type of item.
int *index
Index of item.
list_type *list      (get_list_item_by_name)
List to search.
int index    (get_list_item_by_index)
Index of item to get.
int *size    (get_list_item_by_index)
Size of item to get.
char *type   (get_list_item_by_index)
Type of item to get.
char *name   (get_list_item_by_index)
Name of item to get.
list_type *list      (get_list_item_by_index)
List to fetch item from.
char *diff_name
Name of difference list.
int *match_info
Match info string.
list_type *list_1
Comparator list 1.
list_type *list_2
Comparator list 2.
list_type *from_list
Not Documented.
list_type *to_list
Not Documented.
int save_des (save_list)
Descriptor to svae list to.
list_type *list      (save_list)
List to be saved.
int load_des (load_list_recursive)
Load file descriptor.
list_type *list      (load_list_recursive)
List handle.
list_type *recursor
Sub list recursor.
int load_des (load_list)
Descriptor to load list from.
list_type *list      (load_list)
List to be loaded.
int load_des (read_list_item)
Descriptor from which to load item.
int item_data        (read_list_item)
If TRUE load type and size data.
int size     (read_list_item)
Size of item to be loaded.
char *type   (read_list_item)
Type of item to be loaded.
list_type *list      (read_list_item)
List to read item onto.
int save_des (write_list_item_by_name)
Descriptor of save file.
char *name   (write_list_item_by_name)
Index of save item.
int item_data        (write_list_item_by_name)
If TRUE save tem data.
list_type *list      (write_list_item_by_name)
List containing item.
int index    (write_list_item_by_index)
Index of save item.
list_type *old_list
Not Documented.
list_type *new_list
Not Documented.
list_type *in_list
Not Documented.
list_type *out_list
Not Documented.
char *directory_name
Not Documented.
int mode
Not Documented.
long size
Not Documented.
 

DESCRIPTION

 

find_free_slot

Routine to find the first free slot on list ...  

add_item_to_list

Routine to add an item to a list ...  

remove_item_from_list

Routine to remove an item from a list ...  

get_list_item_by_name

Routine to get item from list by name - note this function only searches the immediate list ...  

get_list_item_by_index

Routine to get item from list by index ...  

compare_lists

Routine to compare a pair of lists by item content ...  

copy_list

Routine to copy a list ...  

move_list

Routine to move a list - note the handles to_list and from_list refer to an identical list ...  

compact_list

Routine to compact a list ...  

delete_list

Routine to delete a list - note that this routine is non recursive and only deletes items which are attached to the current list node ...  

save_list

Actually save a list to file - this routine sets up the recursive save parameters and then calls the recursive save routine ...  

load_list_recursive

Load a list from file - the only sensible way to load a list is recursively ...  

load_list

Actually save a list to file - this routine sets up the recursive save parameters and then calls the recursive save routine ...  

read_list_item

Routine to read a single list item from a file stream ...  

write_list_item_by_name

Routine to save list item to a file stream by name ...  

write_list_item_by_index

Routine to save list item to a file stream ...  

PIPPA_sd_can

Scan a directory looking for new entries - if new entries are found return them in the list 'in_list'. If any old entries have been removed return these in the list 'out_list'. If the directory contents have changed return TRUE else return FALSE ...  

xlcopy

Routine to allocated a peice of controlled heap memory and copy an object to it ...  

xlfree

Routine to free a peice of controlled heap memory ...  

exec_method

Routine to execute the attached functions [attributes] of a CANTOR list object. Note that internal/DLL methods for CANTOR are typeless ...


 

Index

Non Functional
NAME
SYNOPSIS
PARAMETERS
DESCRIPTION
find_free_slot
add_item_to_list
remove_item_from_list
get_list_item_by_name
get_list_item_by_index
compare_lists
copy_list
move_list
compact_list
delete_list
save_list
load_list_recursive
load_list
read_list_item
write_list_item_by_name
write_list_item_by_index
PIPPA_sd_can
xlcopy
xlfree
exec_method

This document was created by man2html, using the manual pages.
Time: 16:36:10 GMT, January 10, 2008