summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-16 00:23:51 +0000
committerDavid Robillard <d@drobilla.net>2011-02-16 00:23:51 +0000
commitcdf9abebfcf083335b8383a390d7ad677676e0fd (patch)
tree9642b2a6169829ec2ce40ada9cf272e7571dbb22
parent0f829957b0924f60e9f73adddc3314427ce08f59 (diff)
downloadsord-cdf9abebfcf083335b8383a390d7ad677676e0fd.tar.gz
sord-cdf9abebfcf083335b8383a390d7ad677676e0fd.tar.bz2
sord-cdf9abebfcf083335b8383a390d7ad677676e0fd.zip
Tidy.
git-svn-id: http://svn.drobilla.net/sord/trunk@29 3d64ff67-21c5-427c-a301-fe4f08042e5a
-rw-r--r--sord/sord.h42
-rw-r--r--src/sord_internal.h2
2 files changed, 22 insertions, 22 deletions
diff --git a/sord/sord.h b/sord/sord.h
index 8c4b837..eafa388 100644
--- a/sord/sord.h
+++ b/sord/sord.h
@@ -15,7 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-/** @file
+/** @file sord.h
* Public Sord API.
*/
@@ -34,13 +34,13 @@
#define SORD_LIB_EXPORT __attribute__ ((visibility("default")))
#endif
-#ifdef SORD_SHARED // Building a shared library
- #ifdef SORD_INTERNAL // Building SORD (not using it)
+#ifdef SORD_SHARED // Building a shared library
+ #ifdef SORD_INTERNAL // Building SORD (not using it)
#define SORD_API SORD_LIB_EXPORT
#else
#define SORD_API SORD_LIB_IMPORT
#endif
-#else // Building a static library
+#else // Building a static library
#define SORD_API
#endif
@@ -51,10 +51,10 @@
* @{
*/
-typedef struct _Sord* Sord; ///< Quad store
-typedef struct _SordIter* SordIter; ///< Store iterator
-typedef struct _SordNode* SordNode; ///< Node
-typedef void* SordID; ///< Integer ID of a Node (0 reserved for NULL)
+typedef struct _Sord* Sord; ///< Quad store
+typedef struct _SordIter* SordIter; ///< Store iterator
+typedef struct _SordNode* SordNode; ///< Node
+typedef void* SordID; ///< Integer ID of a Node (0 reserved for NULL)
/** Quad of IDs (statement), or a quad pattern.
* Nodes are ordered (S P O G). The ID of the default graph is 0.
@@ -63,27 +63,27 @@ typedef SordID SordQuad[4];
/** Index into a SordQuad. */
typedef enum {
- SORD_SUBJECT = 0,
- SORD_PREDICATE = 1,
- SORD_OBJECT = 2,
- SORD_GRAPH = 3
+ SORD_SUBJECT = 0, ///< Subject
+ SORD_PREDICATE = 1, ///< Predicate (a.k.a. "key")
+ SORD_OBJECT = 2, ///< Object (a.k.a. "value")
+ SORD_GRAPH = 3 ///< Graph (a.k.a. "context")
} SordQuadIndex;
/** Type of a node. */
typedef enum {
- SORD_URI = 1, ///< URI
- SORD_BLANK = 2, ///< Blank node identifier
- SORD_LITERAL = 3 ///< Literal (string with optional lang and/or type)
+ SORD_URI = 1, ///< URI
+ SORD_BLANK = 2, ///< Blank node identifier
+ SORD_LITERAL = 3 ///< Literal (string with optional lang and/or type)
} SordNodeType;
/** Indexing option. */
typedef enum {
- SORD_SPO = 1, ///< Subject, Predicate, Object
- SORD_SOP = 1 << 1, ///< Subject, Object, Predicate
- SORD_OPS = 1 << 2, ///< Object, Predicate, Subject
- SORD_OSP = 1 << 3, ///< Object, Subject, Predicate
- SORD_PSO = 1 << 4, ///< Predicate, Subject, Object
- SORD_POS = 1 << 5 ///< Predicate, Object, Subject
+ SORD_SPO = 1, ///< Subject, Predicate, Object
+ SORD_SOP = 1 << 1, ///< Subject, Object, Predicate
+ SORD_OPS = 1 << 2, ///< Object, Predicate, Subject
+ SORD_OSP = 1 << 3, ///< Object, Subject, Predicate
+ SORD_PSO = 1 << 4, ///< Predicate, Subject, Object
+ SORD_POS = 1 << 5 ///< Predicate, Object, Subject
} SordIndexOption;
/** @name Initialisation and Cleanup
diff --git a/src/sord_internal.h b/src/sord_internal.h
index 517f405..d2c16e7 100644
--- a/src/sord_internal.h
+++ b/src/sord_internal.h
@@ -23,7 +23,7 @@
#include "sord/sord.h"
-typedef intptr_t SordCount; ///< Count of nodes or triples
+typedef intptr_t SordCount; ///< Count of nodes or triples
/** Node */
struct _SordNode {