rdf.h revision 6b15695578f07a3f72c4c9475c1a261a3021472a
/**
*
* \brief headers for RDF types
*
* Authors:
* Kees Cook <kees@outflux.net>
*
* Copyright (C) 2004 Kees Cook <kees@outflux.net>
*
* Released under GNU GPL, read the file 'COPYING' for more information
*
*/
#ifndef _RDF_H_
#define _RDF_H_
#include <glib.h>
#include "document.h"
// yeah, it's not a triple yet...
/**
*/
struct rdf_double_t {
};
/**
* \brief Holds license name and RDF information
*/
struct rdf_license_t {
};
extern rdf_license_t rdf_licenses [];
/**
* \brief Describes how a given RDF entity is stored in XML
*/
enum RDFType {
RDF_CONTENT, // direct between-XML-tags content
RDF_AGENT, // requires the "Agent" hierarchy before doing content
RDF_RESOURCE, // stored in "rdf:resource" element
RDF_XML, // literal XML
RDF_BAG // rdf:Bag resources
};
/**
* \brief Describes how a given RDF entity should be edited
*/
enum RDF_Format {
RDF_FORMAT_LINE, // uses single line data (GtkEntry)
RDF_FORMAT_MULTILINE, // uses multiline data (GtkTextView)
RDF_FORMAT_SPECIAL // uses some other edit methods
};
enum RDF_Editable {
RDF_EDIT_GENERIC, // editable via generic widgets
RDF_EDIT_SPECIAL, // special widgets are needed
RDF_EDIT_HARDCODED // isn't editable
};
/**
*/
struct rdf_work_entity_t {
char *name; /* unique name of this entity for internal reference */
};
extern rdf_work_entity_t rdf_work_entities [];
/**
* \brief Generic collection of RDF information for the RDF debug function
*/
struct rdf_t {
struct rdf_license_t* license;
};
struct rdf_work_entity_t * entity);
struct rdf_work_entity_t * entity,
struct rdf_license_t const * license);
#endif // _RDF_H_
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :