mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12096 57a11ea4-9604-0410-9ed3-97b8803252fd
63 lines
2.5 KiB
C
63 lines
2.5 KiB
C
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
|
|
/*
|
|
* gsf-doc-meta-data.h: get, set, remove custom meta properties associated with documents
|
|
*
|
|
* Copyright (C) 2002-2005 Dom Lachowicz (cinamod@hotmail.com)
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of version 2.1 of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation.
|
|
*
|
|
* This program 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 General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
|
|
* USA
|
|
*/
|
|
|
|
#ifndef GSF_DOC_META_DATA_H
|
|
#define GSF_DOC_META_DATA_H
|
|
|
|
#include <gsf/gsf.h>
|
|
#include <glib-object.h>
|
|
#include <sys/types.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define GSF_DOC_META_DATA_TYPE (gsf_doc_meta_data_get_type ())
|
|
#define GSF_DOC_META_DATA(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GSF_DOC_META_DATA_TYPE, GsfDocMetaData))
|
|
#define IS_GSF_DOC_META_DATA(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GSF_DOC_META_DATA_TYPE))
|
|
|
|
GType gsf_doc_meta_data_get_type (void);
|
|
GsfDocMetaData *gsf_doc_meta_data_new (void);
|
|
GsfDocProp *gsf_doc_meta_data_lookup (GsfDocMetaData const *meta,
|
|
char const *name);
|
|
void gsf_doc_meta_data_insert (GsfDocMetaData *meta,
|
|
char *name, GValue *value);
|
|
void gsf_doc_meta_data_remove (GsfDocMetaData *meta,
|
|
char const *name);
|
|
GsfDocProp *gsf_doc_meta_data_steal (GsfDocMetaData *meta,
|
|
char const *name);
|
|
void gsf_doc_meta_data_store (GsfDocMetaData *meta,
|
|
GsfDocProp *prop);
|
|
void gsf_doc_meta_data_foreach (GsfDocMetaData const *meta,
|
|
GHFunc func, gpointer user_data);
|
|
gsize gsf_doc_meta_data_size (GsfDocMetaData const *meta);
|
|
|
|
GsfDocProp *gsf_doc_prop_new (char *name);
|
|
void gsf_doc_prop_free (GsfDocProp *prop);
|
|
char const *gsf_doc_prop_get_name (GsfDocProp const *prop);
|
|
GValue const *gsf_doc_prop_get_val (GsfDocProp const *prop);
|
|
void gsf_doc_prop_set_val (GsfDocProp *prop, GValue *val);
|
|
GValue *gsf_doc_prop_swap_val (GsfDocProp *prop, GValue *val);
|
|
char const *gsf_doc_prop_get_link (GsfDocProp const *prop);
|
|
void gsf_doc_prop_set_link (GsfDocProp *prop, char *link);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* GSF_DOC_META_DATA_H */
|