ext/snowcrash/src/CBlueprint.h in redsnow-0.2.1 vs ext/snowcrash/src/CBlueprint.h in redsnow-0.3.0

- old
+ new

@@ -32,10 +32,14 @@ SC_UNDEFINED_PARAMETER_USE, SC_OPTIONAL_PARAMETER_USE, SC_REQUIRED_PARAMETER_USE } sc_parameter_use; + typedef enum sc_reference_type_t { + SC_TYPE_SYMBOL_REFERENCE + } sc_reference_type_t; + /** Class Blueprint wrapper */ struct sc_blueprint_s; typedef struct sc_blueprint_s sc_blueprint_t; /** Array Metadata wrapper */ @@ -68,10 +72,14 @@ /** Array Payload Collection wrapper */ struct sc_payload_collection_s; typedef struct sc_payload_collection_s sc_payload_collection_t; + /** Class Reference wrapper */ + struct sc_reference_s; + typedef struct sc_reference_s sc_reference_t; + /** Class Payload wrapper */ struct sc_payload_s; typedef struct sc_payload_s sc_payload_t; /** Array Parameter wrapper */ @@ -208,20 +216,28 @@ SC_API const sc_payload_t* sc_payload_handle_resource(const sc_resource_t* handle); /** \returns Payload name */ SC_API const char* sc_payload_name(const sc_payload_t* handle); - /** \returns Payload symbol name */ - SC_API const char* sc_payload_symbol(const sc_payload_t* handle); - /** \returns Payload description */ SC_API const char* sc_payload_description(const sc_payload_t* handle); /** \returns Payload body */ SC_API const char* sc_payload_body(const sc_payload_t* handle); /** \returns Payload schema */ SC_API const char* sc_payload_schema(const sc_payload_t* handle); + + /*----------------------------------------------------------------------*/ + + /** \returns Reference handle from payload */ + SC_API const sc_reference_t* sc_reference_handle_payload(const sc_payload_t* handle); + + /** \returns Reference identifier */ + SC_API const char* sc_reference_id(const sc_reference_t* handle); + + /** \returns Reference identifier */ + SC_API sc_reference_type_t sc_reference_type(const sc_reference_t* handle); /*----------------------------------------------------------------------*/ /** \returns Parameter Collection handle from Payload */ SC_API const sc_parameter_collection_t* sc_parameter_collection_handle_payload(const sc_payload_t* handle);