Skip to content

Commit

Permalink
Mark Tox_Options struct as deprecated.
Browse files Browse the repository at this point in the history
We will remove it in v0.1.
  • Loading branch information
iphydf committed Nov 20, 2016
1 parent 3bc5ad1 commit e78bd7f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
7 changes: 4 additions & 3 deletions toxcore/tox.api.h
Expand Up @@ -433,9 +433,10 @@ static class options {
* in future versions of the API, code that allocates it itself will become
* incompatible.
*
* The memory layout of this struct (size, alignment, and field order) is not
* part of the ABI. To remain compatible, prefer to use $new to allocate the
* object and accessor functions to set the members.
* @deprecated The memory layout of this struct (size, alignment, and field
* order) is not part of the ABI. To remain compatible, prefer to use $new to
* allocate the object and accessor functions to set the members. The struct
* will become opaque (i.e. the definition will become private) in v0.1.0.
*/
struct this [get, set] {
/**
Expand Down
8 changes: 5 additions & 3 deletions toxcore/tox.h
Expand Up @@ -482,9 +482,10 @@ typedef void tox_log_cb(Tox *tox, TOX_LOG_LEVEL level, const char *file, uint32_
* in future versions of the API, code that allocates it itself will become
* incompatible.
*
* The memory layout of this struct (size, alignment, and field order) is not
* part of the ABI. To remain compatible, prefer to use tox_options_new to allocate the
* object and accessor functions to set the members.
* @deprecated The memory layout of this struct (size, alignment, and field
* order) is not part of the ABI. To remain compatible, prefer to use tox_options_new to
* allocate the object and accessor functions to set the members. The struct
* will become opaque (i.e. the definition will become private) in v0.1.0.
*/
struct Tox_Options {

Expand Down Expand Up @@ -2913,3 +2914,4 @@ uint16_t tox_self_get_tcp_port(const Tox *tox, TOX_ERR_GET_PORT *error);
#endif

#endif

0 comments on commit e78bd7f

Please sign in to comment.