GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
pad.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <grass/gis.h>
#include "pad.h"
Include dependency graph for pad.c:

Go to the source code of this file.

Functions

int append_item (PAD *pad, const char *name, const char *value, int replace)
 
int delete_item (PAD *pad, const char *name)
 
ITEMfind_item (PAD *pad, const char *name)
 
PADpad_list (void)
 
int create_pad (const char *name)
 
int delete_pad (PAD *pad)
 
PADfind_pad (const char *name)
 
int invent_pad (char *name)
 

Function Documentation

int append_item ( PAD pad,
const char *  name,
const char *  value,
int  replace 
)
int create_pad ( const char *  name)

Definition at line 167 of file pad.c.

References G_free(), G_store(), _pad_::items, _pad_::name, _pad_::next, NULL, and _pad_::prev.

Referenced by LIB_init(), LOC_pad_create(), and process_command().

int delete_item ( PAD pad,
const char *  name 
)

Definition at line 113 of file pad.c.

References find_item(), _pad_::items, _item_::next, NULL, and _item_::prev.

Referenced by LOC_pad_delete_item(), LOC_pad_set_item(), and process_command().

int delete_pad ( PAD pad)

Definition at line 188 of file pad.c.

References G_free(), _pad_::items, _item_::next, and NULL.

Referenced by LOC_pad_delete(), and process_command().

ITEM* find_item ( PAD pad,
const char *  name 
)
PAD* find_pad ( const char *  name)

Definition at line 207 of file pad.c.

References _pad_::name, _pad_::next, and NULL.

Referenced by invent_pad(), LOC_pad_create(), LOC_pad_select(), and process_command().

int invent_pad ( char *  name)

Definition at line 217 of file pad.c.

References find_pad(), NULL, and sprintf().

Referenced by LOC_pad_invent(), and process_command().

PAD* pad_list ( void  )

Definition at line 146 of file pad.c.

Referenced by LOC_pad_list(), and process_command().