File: galago-key-value.h

package info (click to toggle)
libgalago 0.5.1-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,916 kB
  • ctags: 2,459
  • sloc: ansic: 12,882; sh: 9,314; xml: 5,278; makefile: 450; yacc: 318
file content (43 lines) | stat: -rw-r--r-- 1,443 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
 * Key/Value Data Structure
 *
 * @Copyright (C) 2006 Christian Hammond
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA  02111-1307, USA.
 */
#ifndef _GALAGO_KEY_VALUE_H_
#define _GALAGO_KEY_VALUE_H_

#include <glib-object.h>

typedef struct
{
	char *key;
	GValue *value;

} GalagoKeyValue;

GalagoKeyValue *galago_key_value_new(const char *key, GValue *value);
void galago_key_value_destroy(GalagoKeyValue *key_value);

void galago_key_value_set_key(GalagoKeyValue *key_value,
							  const char *key);
const char *galago_key_value_get_key(const GalagoKeyValue *key_value);

void galago_key_value_set_value(GalagoKeyValue *key_value, GValue *value);
const GValue *galago_key_value_get_value(const GalagoKeyValue *key_value);

#endif /* _GALAGO_KEY_VALUE_H_ */