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

pagelayout.c File Reference

#include "websmcphandler.h"
#include "pagelayout_defaults.h"

Defines

#define CPY_PAGE_LAYOUT_MBR(mbr, default_string)
#define FREE_PAGE_LAYOUT_MBR(mbr, default)   if ( (layout) -> mbr ) aw_free( (void *)( (layout) -> mbr ) )
#define PAGELAYOUT_STRING_DEFAULT   CPY_PAGE_LAYOUT_MBR
#define PAGELAYOUT_STRING_DEFAULT   FREE_PAGE_LAYOUT_MBR

Functions

void aw_websmcphandler_clear_layout (aw_websmcphandler_layout_t *layout)
 Free resources for layout.

void aw_websmcphandler_copy_layout (aw_websmcphandler_layout_t *to, aw_websmcphandler_layout_t *from)
 Copy from one layout to another, applying defaults as necessary.

void aw_websmcphandler_init_layout (aw_websmcphandler_layout_t *layout)
 Init resources for layout.


Define Documentation

#define CPY_PAGE_LAYOUT_MBR (  mbr,
default_string   ) 
 

Value:

{\
const char *ds = default_string; \
( (to) -> mbr = ( (from) -> mbr )?strdup( (from) -> mbr ):((ds != NULL)?strdup(ds):NULL)); \
}

#define FREE_PAGE_LAYOUT_MBR (  mbr,
default   )     if ( (layout) -> mbr ) aw_free( (void *)( (layout) -> mbr ) )
 

#define PAGELAYOUT_STRING_DEFAULT   CPY_PAGE_LAYOUT_MBR
 

#define PAGELAYOUT_STRING_DEFAULT   FREE_PAGE_LAYOUT_MBR
 


Function Documentation

void aw_websmcphandler_clear_layout (  aw_websmcphandler_layout_t *  layout  ) 
 

Free resources for layout.

aw_websmcphandler_clear_layout

Parameters:
layout 

void aw_websmcphandler_copy_layout (  aw_websmcphandler_layout_t *  to,
aw_websmcphandler_layout_t *  from
) 
 

Copy from one layout to another, applying defaults as necessary.

aw_websmcphandler_copy_layout

Parameters:
to Copy into
from Copy from

void aw_websmcphandler_init_layout (  aw_websmcphandler_layout_t *  layout  ) 
 

Init resources for layout.

aw_websmcphandler_init_layout

Parameters:
layout 

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