Skip to content

Commit

Permalink
Add 'cowl_ontology_header_empty' and missing CowlOntologyHeader docs
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanoBilenchi committed Feb 28, 2024
1 parent 1e9470f commit 9bf074e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/api/crud/write.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ ontology document must be serialized via the :struct:`CowlOStream` API. Similarl
you can retrieve a :struct:`CowlOStream` instance via :func:`cowl_manager_get_ostream()`.

.. doxygenstruct:: CowlStreamWriter
.. doxygenstruct:: CowlOntologyHeader
.. doxygengroup:: CowlOntologyHeader
:content-only:
.. doxygenstruct:: CowlOStream
.. doxygengroup:: CowlOStream
:content-only:
19 changes: 19 additions & 0 deletions include/cowl_ontology_header.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,25 @@ typedef struct CowlOntologyHeader {

} CowlOntologyHeader;

/**
* @defgroup CowlOntologyHeader CowlOntologyHeader API
* @{
*/

/**
* Returns an empty ontology header.
*
* @return Empty ontology header.
*/
COWL_CONST
COWL_INLINE
CowlOntologyHeader cowl_ontology_header_empty(void) {
CowlOntologyHeader header = { cowl_ontology_id_anonymous(), NULL, NULL };
return header;
}

/// @}

COWL_END_DECLS

#endif // COWL_ONTOLOGY_HEADER_H

0 comments on commit 9bf074e

Please sign in to comment.