aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Schink <swo-dev@marcschink.de>2017-07-15 18:17:05 +0200
committerMarc Schink <swo-dev@marcschink.de>2017-07-21 09:25:37 +0200
commit5de74c57b083fad4e8a11a9bf74cf470e9bac446 (patch)
treee2fd9b1988936287bfd6e5efa49381624ec193a9
parentd6165930d7371d523a44c1d86042f1b1ac4ab092 (diff)
bindings: Use default argument for buffer size
-rw-r--r--bindings/cxx/libswocxx.h4
-rw-r--r--bindings/python/Context.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/bindings/cxx/libswocxx.h b/bindings/cxx/libswocxx.h
index 408452a..37ac1fa 100644
--- a/bindings/cxx/libswocxx.h
+++ b/bindings/cxx/libswocxx.h
@@ -323,8 +323,8 @@ public:
class LIBSWO_API Context
{
public:
- Context(size_t buffer_size);
- Context(uint8_t *buffer, size_t buffer_size);
+ Context(size_t buffer_size = DEFAULT_BUFFER_SIZE);
+ Context(uint8_t *buffer, size_t buffer_size = DEFAULT_BUFFER_SIZE);
~Context(void);
LogLevel get_log_level(void) const;
diff --git a/bindings/python/Context.h b/bindings/python/Context.h
index 4b9006c..a083d42 100644
--- a/bindings/python/Context.h
+++ b/bindings/python/Context.h
@@ -25,7 +25,7 @@
class Context : public libswo::Context
{
public:
- Context(size_t buffer_size);
+ Context(size_t buffer_size = libswo::Context::DEFAULT_BUFFER_SIZE);
~Context(void);
void set_callback(PyObject *callback);