![]() |
![]() |
![]() |
Reference Manual for CouchDB GLib Bindings | ![]() |
---|---|---|---|---|
Top | Description |
const char * desktopcouch_document_get_record_type (DesktopcouchDocument *document
); void desktopcouch_document_set_record_type (DesktopcouchDocument *document
,const char *record_type
); CouchdbStructField * desktopcouch_document_get_application_annotations (DesktopcouchDocument *document
); void desktopcouch_document_set_application_annotations (DesktopcouchDocument *document
,CouchdbStructField *annotations
);
const char * desktopcouch_document_get_record_type
(DesktopcouchDocument *document
);
Retrieve the record type of the given document. Record types are special fields in the CouchDB documents, used in DesktopCouch, to identify standard records. All supported record types are listed at http://www.freedesktop.org/wiki/Specifications/desktopcouchFormats.
|
A DesktopcouchDocument object |
Returns : |
The record type of the given document. |
void desktopcouch_document_set_record_type (DesktopcouchDocument *document
,const char *record_type
);
Set the record type of the given document.
|
A DesktopcouchDocument object |
|
Record type to set the document to |
CouchdbStructField * desktopcouch_document_get_application_annotations
(DesktopcouchDocument *document
);
Retrieve the application annotations for the given document.
Application annotations is a special field (named "application_annotations"), used in desktopcouch to allow applications to set values on standard documents (as defined at http://www.freedesktop.org/wiki/Specifications/desktopcouchFormats) that are not part of the standard, but still needed by the application.
|
A DesktopcouchDocument object |
Returns : |
A CouchdbStructField containing the value of the application annotations for the given document. |
void desktopcouch_document_set_application_annotations (DesktopcouchDocument *document
,CouchdbStructField *annotations
);
Set the application annotations for the given document.
|
A DesktopcouchDocument object |
|
A CouchdbStructField with the contents of the application_annotations field. |