00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef __CR_DECLARATION_H__
00028 #define __CR_DECLARATION_H__
00029
00030 #include <stdio.h>
00031 #include "cr-utils.h"
00032 #include "cr-term.h"
00033
00034 G_BEGIN_DECLS
00035
00036
00037
00038
00039
00040
00041
00042 typedef struct _CRStatement CRStatement ;
00043
00044
00045
00046
00047
00048
00049 typedef struct _CRDeclaration CRDeclaration ;
00050 struct _CRDeclaration
00051 {
00052
00053 GString *property ;
00054
00055
00056 CRTerm *value ;
00057
00058
00059 CRStatement *parent_statement ;
00060
00061
00062 CRDeclaration *next ;
00063
00064
00065 CRDeclaration *prev ;
00066
00067 glong ref_count ;
00068 } ;
00069
00070
00071 CRDeclaration *
00072 cr_declaration_new (CRStatement *a_statement,
00073 GString *a_property,
00074 CRTerm *a_value) ;
00075
00076
00077 CRDeclaration *
00078 cr_declaration_parse_from_buf (CRStatement *a_statement,
00079 const guchar *a_str,
00080 enum CREncoding a_enc) ;
00081 CRDeclaration *
00082 cr_declaration_append (CRDeclaration *a_this, CRDeclaration *a_new) ;
00083
00084 CRDeclaration *
00085 cr_declaration_append2 (CRDeclaration *a_this, GString *a_prop,
00086 CRTerm *a_value) ;
00087
00088 CRDeclaration *
00089 cr_declaration_prepend (CRDeclaration *a_this, CRDeclaration *a_new) ;
00090
00091 CRDeclaration *
00092 cr_declaration_unlink (CRDeclaration * a_decl) ;
00093
00094 void
00095 cr_declaration_dump (CRDeclaration *a_this, FILE *a_fp, glong a_indent,
00096 gboolean a_one_per_line) ;
00097
00098 guchar *
00099 cr_declaration_to_string (CRDeclaration *a_this,
00100 gulong a_indent) ;
00101 void
00102 cr_declaration_ref (CRDeclaration *a_this) ;
00103
00104 gboolean
00105 cr_declaration_unref (CRDeclaration *a_this) ;
00106
00107 void
00108 cr_declaration_destroy (CRDeclaration *a_this) ;
00109
00110 G_END_DECLS
00111
00112 #endif