summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-11-20 21:31:13 +0000
committeriphydf <iphydf@users.noreply.github.com>2016-11-21 00:16:59 +0000
commit75a33d220106f66e3abe80409a10cb55130fc457 (patch)
treef6d39d9bea1b2f80ce914d2d778e76269949e8ac
parent3bc5ad1c1331fa28f76e2ba26392f65965f04326 (diff)
Mark Tox_Options struct as deprecated.
We will remove it in v0.1.
-rw-r--r--CMakeLists.txt1
-rw-r--r--toxcore/tox.api.h7
-rw-r--r--toxcore/tox.h7
3 files changed, 9 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dbabebed..7c08fd82 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -81,6 +81,7 @@ if(WARNINGS)
81 add_flag("-Wno-cast-align") 81 add_flag("-Wno-cast-align")
82 add_flag("-Wno-conversion") 82 add_flag("-Wno-conversion")
83 add_flag("-Wno-covered-switch-default") 83 add_flag("-Wno-covered-switch-default")
84 add_flag("-Wno-documentation-deprecated-sync")
84 add_flag("-Wno-format-nonliteral") 85 add_flag("-Wno-format-nonliteral")
85 add_flag("-Wno-missing-field-initializers") 86 add_flag("-Wno-missing-field-initializers")
86 add_flag("-Wno-missing-prototypes") 87 add_flag("-Wno-missing-prototypes")
diff --git a/toxcore/tox.api.h b/toxcore/tox.api.h
index e9e3483d..40031830 100644
--- a/toxcore/tox.api.h
+++ b/toxcore/tox.api.h
@@ -433,9 +433,10 @@ static class options {
433 * in future versions of the API, code that allocates it itself will become 433 * in future versions of the API, code that allocates it itself will become
434 * incompatible. 434 * incompatible.
435 * 435 *
436 * The memory layout of this struct (size, alignment, and field order) is not 436 * @deprecated The memory layout of this struct (size, alignment, and field
437 * part of the ABI. To remain compatible, prefer to use $new to allocate the 437 * order) is not part of the ABI. To remain compatible, prefer to use $new to
438 * object and accessor functions to set the members. 438 * allocate the object and accessor functions to set the members. The struct
439 * will become opaque (i.e. the definition will become private) in v0.1.0.
439 */ 440 */
440 struct this [get, set] { 441 struct this [get, set] {
441 /** 442 /**
diff --git a/toxcore/tox.h b/toxcore/tox.h
index af25d8fa..ef738422 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -482,9 +482,10 @@ typedef void tox_log_cb(Tox *tox, TOX_LOG_LEVEL level, const char *file, uint32_
482 * in future versions of the API, code that allocates it itself will become 482 * in future versions of the API, code that allocates it itself will become
483 * incompatible. 483 * incompatible.
484 * 484 *
485 * The memory layout of this struct (size, alignment, and field order) is not 485 * @deprecated The memory layout of this struct (size, alignment, and field
486 * part of the ABI. To remain compatible, prefer to use tox_options_new to allocate the 486 * order) is not part of the ABI. To remain compatible, prefer to use tox_options_new to
487 * object and accessor functions to set the members. 487 * allocate the object and accessor functions to set the members. The struct
488 * will become opaque (i.e. the definition will become private) in v0.1.0.
488 */ 489 */
489struct Tox_Options { 490struct Tox_Options {
490 491