pcb 4.1.1
An interactive printed circuit board layout editor.

resource.h File Reference

#include <stdio.h>
Include dependency graph for resource.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ResourceVal
struct  Resource

Defines

#define FLAG_V   1
#define FLAG_NV   2
#define FLAG_S   4
#define FLAG_NS   8
#define resource_type(resval)   (((resval).name?100:0)+((resval).value?10:0)+((resval).subres?1:0))

Typedefs

typedef struct ResourceVal ResourceVal
typedef struct Resource Resource

Functions

Resourceresource_parse (const char *filename, const char **stringtab)
char * resource_value (const Resource *res, char *name)
Resourceresource_subres (const Resource *res, const char *name)
Resourceresource_create (Resource *parent)
void resource_add_val (Resource *n, char *name, char *value, Resource *subres)
void resource_dump (Resource *res)

Define Documentation

#define FLAG_NS   8

Definition at line 23 of file resource.h.

#define FLAG_NV   2

Definition at line 21 of file resource.h.

#define FLAG_S   4

Definition at line 22 of file resource.h.

Referenced by add_resource_to_menu(), and ghid_main_menu_real_add_resource().

#define FLAG_V   1

Definition at line 20 of file resource.h.

Referenced by insert_layerpick_buttons(), and insert_layerview_buttons().

#define resource_type (   resval)    (((resval).name?100:0)+((resval).value?10:0)+((resval).subres?1:0))

Typedef Documentation

typedef struct Resource Resource
typedef struct ResourceVal ResourceVal

Function Documentation

void resource_add_val ( Resource n,
char *  name,
char *  value,
Resource subres 
)

Definition at line 1725 of file res_parse.c.

References Resource::c, ResourceVal::name, realloc(), ResourceVal::subres, Resource::v, and ResourceVal::value.

Referenced by insert_layerpick_buttons(), insert_layerview_buttons(), and res_wrap().

Here is the call graph for this function:

Resource* resource_create ( Resource parent)

Definition at line 1714 of file res_parse.c.

References Resource::c, Resource::flags, malloc(), Resource::parent, and Resource::v.

Referenced by insert_layerpick_buttons(), insert_layerview_buttons(), and res_wrap().

Here is the call graph for this function:

void resource_dump ( Resource res)

Definition at line 1787 of file res_parse.c.

References dump_res().

Referenced by load_mouse_resource().

Here is the call graph for this function:

Resource* resource_parse ( const char *  filename,
const char **  stringtab 
)

Definition at line 1677 of file res_parse.c.

References filename, and parsed_res.

Referenced by ActionLoadVendorFrom(), ghid_load_menus(), and lesstif_menu().

Resource* resource_subres ( const Resource res,
const char *  name 
)
char* resource_value ( const Resource res,
char *  name 
)