Added tons of documentation headers to functions in source files.
This commit is contained in:
parent
0f04e056b2
commit
4eb2080933
43 changed files with 3953 additions and 43 deletions
|
|
@ -6,6 +6,12 @@ struct xtc_app {
|
|||
unsigned int reserved;
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Returns a short human-readable name for a result code.
|
||||
*
|
||||
* @param result Result code to describe.
|
||||
* @return Borrowed static string; never NULL.
|
||||
*/
|
||||
const char *xtc_result_string(xtc_result result)
|
||||
{
|
||||
switch (result) {
|
||||
|
|
@ -34,6 +40,12 @@ const char *xtc_result_string(xtc_result result)
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Allocates an application handle.
|
||||
*
|
||||
* @param out_app Receives the newly allocated app; caller owns it on success.
|
||||
* @return XTC_OK on success, or an error code describing the failure.
|
||||
*/
|
||||
xtc_result xtc_app_create(xtc_app **out_app)
|
||||
{
|
||||
xtc_app *app;
|
||||
|
|
@ -52,6 +64,11 @@ xtc_result xtc_app_create(xtc_app **out_app)
|
|||
return XTC_OK;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Releases an application handle; accepts NULL.
|
||||
*
|
||||
* @param app Application handle.
|
||||
*/
|
||||
void xtc_app_destroy(xtc_app *app)
|
||||
{
|
||||
free(app);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue