diff options
author | Dave Beckett <dave@dajobe.org> | 2010-02-04 20:58:36 -0800 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2010-02-05 17:48:20 -0800 |
commit | 7fa364a3e36b58444f65c7cd2bb6a542656d2973 (patch) | |
tree | 2fb39d318f429ff4d3ea976b43584a3126055e5f /src/raptor_sax2.c | |
parent | aaf9450c179372771dc6c29475ebf459f395d220 (diff) | |
download | raptor-7fa364a3e36b58444f65c7cd2bb6a542656d2973.tar.gz |
Added raptor_world_enumerate_sax2_features()
Diffstat (limited to 'src/raptor_sax2.c')
-rw-r--r-- | src/raptor_sax2.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/raptor_sax2.c b/src/raptor_sax2.c index d1d1cf58..c698d038 100644 --- a/src/raptor_sax2.c +++ b/src/raptor_sax2.c @@ -639,6 +639,32 @@ raptor_sax2_parse_chunk(raptor_sax2* sax2, const unsigned char *buffer, /** + * raptor_world_enumerate_sax2_features: + * @world: raptor_world object + * @feature: feature enumeration (0+) + * @name: pointer to store feature short name (or NULL) + * @uri: pointer to store feature URI (or NULL) + * @label: pointer to feature label (or NULL) + * + * Get list of SAX2 features. + * + * If uri is not NULL, a pointer to a new raptor_uri is returned + * that must be freed by the caller with raptor_free_uri(). + * + * Return value: 0 on success, <0 on failure, >0 if feature is unknown + **/ +int +raptor_world_enumerate_sax2_features(raptor_world* world, + const raptor_feature feature, + const char **name, + raptor_uri **uri, const char **label) +{ + return raptor_features_enumerate_common(world, feature, name, uri, label, + RAPTOR_FEATURE_AREA_SAX2); +} + + +/** * raptor_sax2_set_feature: * @sax2: #raptor_sax2 SAX2 object * @feature: feature to set from enumerated #raptor_feature values |