Skip to content

Commit 9dafd9e

Browse files
committed
0.17.0
1 parent d421856 commit 9dafd9e

File tree

13 files changed

+805
-237
lines changed

13 files changed

+805
-237
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
ObjectBox C and C++ API Changelog
22
=================================
33

4+
0.17.0 (2022-06-14)
5+
-------------------
6+
* Added a "weak store" API providing weak reference for stores (typically used by background threads)
7+
* Added Store ID API, e.g. getting a store by its ID
8+
* Various internal improvements including minor optimizations for binary size and performance
9+
10+
### C++
11+
12+
* New "OBX_CPP_FILE" define to place declarations in a single .cpp/.cc file: improves compilation time and results
13+
* New "Exception" base class for all thrown exceptions
14+
* Various internal improvements, e.g. a "internal" namespace to better distinguish from userland API
15+
416
0.16.0 (2022-05-06)
517
-------------------
618
* Allow UTF-8 for database directories on Windows (available for other platforms before)

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ else ()
3131

3232
function(defineObjectBoxLib VARIANT)
3333
# Configuration updated for each release
34-
set(DL_VERSION 0.16.0)
34+
set(DL_VERSION 0.17.0)
3535

3636
# Platform detection and other setup
3737
set(DL_URL https://github.com/objectbox/objectbox-c/releases/download)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ box.put({.text = "Buy milk"});
1717
1818
See [ObjectBox C and C++ docs](https://cpp.objectbox.io/) for API details.
1919
20-
**Latest version: 0.16.0** (2022-05-06).
20+
**Latest version: 0.17.0** (2022-06-14).
2121
See [changelog](CHANGELOG.md) for more details.
2222
2323
Feature Highlights

download.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ tty -s || quiet=true
4444

4545
# Note: optional arguments like "--quiet" shifts argument positions in the case block above
4646

47-
version=${1:-0.16.0}
47+
version=${1:-0.17.0}
4848
os=${2:-$(uname)}
4949
arch=${3:-$(uname -m)}
5050
echo "Base config: OS ${os} and architecture ${arch}"

doxygen/Changelog.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
ObjectBox C and C++ API Changelog
44
=================================
55

6+
0.17.0 (2022-06-14)
7+
-------------------
8+
* Added a "weak store" API providing weak reference for stores (typically used by background threads)
9+
* Added Store ID API, e.g. getting a store by its ID
10+
* Various internal improvements including minor optimizations for binary size and performance
11+
12+
### C++
13+
14+
* New "OBX_CPP_FILE" define to place declarations in a single .cpp/.cc file: improves compilation time and results
15+
* New "Exception" base class for all thrown exceptions
16+
* Various internal improvements, e.g. a "internal" namespace to better distinguish from userland API
17+
618
0.16.0 (2022-05-06)
719
-------------------
820
* Allow UTF-8 for database directories on Windows (available for other platforms before)

doxygen/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "ObjectBox C and C++ API"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = "0.16.0"
41+
PROJECT_NUMBER = "0.17.0"
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

examples/c-cursor-no-gen/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ void do_action_help(char* program_path) {
159159
//--------------------------------------------------------------------------------------------------------------------
160160

161161
int do_action_new(OBX_store* store, int argc, char* argv[]) {
162-
char* text = NULL;
162+
char* text = "n/a";
163163
void* buff = NULL;
164164
size_t size = 0;
165165
OBX_txn* txn = NULL;

examples/cpp-gen-sync/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17+
#define OBX_CPP_FILE
1718
#include "tasklist-example-app.hpp"
1819

19-
2020
using namespace obx;
2121

2222
int main(int argc, char* argv[]) {

examples/cpp-gen/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17+
#define OBX_CPP_FILE
1718
#include "tasklist-example-app.hpp"
1819

1920
int main(int argc, char* argv[]) {

include/objectbox-sync.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include "objectbox.h"
3535

3636
#if defined(static_assert) || defined(__cplusplus)
37-
static_assert(OBX_VERSION_MAJOR == 0 && OBX_VERSION_MINOR == 16 && OBX_VERSION_PATCH == 0,
37+
static_assert(OBX_VERSION_MAJOR == 0 && OBX_VERSION_MINOR == 17 && OBX_VERSION_PATCH == 0,
3838
"Versions of objectbox.h and objectbox-sync.h files do not match, please update");
3939
#endif
4040

0 commit comments

Comments
 (0)