duifield-hash.c File Reference


Detailed Description

Implement the field for the DUI-Interface global hash table.

Author:
Linas Vepstas September 2003

Definition in file duifield-hash.c.

#include "config.h"
#include <string.h>
#include <glib.h>
#include "duifield-hash.h"
#include "duifield.h"
#include "duiresolver.h"
#include "interface.h"
#include "perr.h"

Go to the source code of this file.

Functions

static void hash_field_clear (DuiField *f)
static const gchar * get_hash_key_value (DuiField *fs)
static void set_hash_key_value (DuiField *fs, const gchar *val)
void dui_field_set_hash_key (DuiField *fs, const gchar *key)
void dui_resolver_resolve_hash (DuiResolver *res, DuiInterface *rot)


Function Documentation

void dui_field_set_hash_key ( DuiField *  fs,
const gchar *  key 
)

< Global hash table key

Definition at line 79 of file duifield-hash.c.

00080 {
00081     fs->type = DUI_FIELD_HASH_KEY;
00082     fs->fieldname = g_strdup (key);
00083 
00084     fs->get_field_value = get_hash_key_value;
00085     fs->set_field_value = set_hash_key_value;
00086     fs->clear_field = hash_field_clear;
00087 }

void dui_resolver_resolve_hash ( DuiResolver *  res,
DuiInterface *  rot 
)

< Global hash table key

Definition at line 92 of file duifield-hash.c.

00093 {
00094     GList *node;
00095     struct hash_s * gf;
00096 
00097     for (node = res->field_list; node; node=node->next)
00098     {
00099         DuiField *fld = node->data;
00100         if (!DUI_FIELD_IS_TYPE(fld,DUI_FIELD_HASH_KEY)) continue;
00101         gf = (struct hash_s*) get_gobj_field (fld);
00102         gf->hash_table_root = rot;
00103     }
00104 }


Generated on Tue Apr 29 21:27:53 2008 for estron by  doxygen 1.5.5