Skip to content

Commit

Permalink
update cbindgen 0.15->0.26
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith committed Sep 25, 2023
1 parent 41a7583 commit 58cc201
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 52 deletions.
85 changes: 38 additions & 47 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bindings/headers/imageflow_default.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ bool imageflow_context_add_input_buffer(struct imageflow_context *context,
int32_t io_id,
const uint8_t *buffer,
size_t buffer_byte_count,
imageflow_lifetime lifetime);
enum imageflow_lifetime lifetime);

//
// Adds an output buffer to the job context.
Expand Down
6 changes: 5 additions & 1 deletion bindings/headers/imageflow_lua.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@



// Incremented for breaking changes


Expand All @@ -13,6 +14,9 @@ struct imageflow_job;
struct imageflow_job_io;





//
// How long the provided pointer/buffer will remain valid.
// Callers must prevent the memory from being freed or moved until this contract expires.
Expand Down Expand Up @@ -49,7 +53,7 @@ bool imageflow_context_add_input_buffer(struct imageflow_context *context,
int32_t io_id,
const uint8_t *buffer,
size_t buffer_byte_count,
imageflow_lifetime lifetime);
enum imageflow_lifetime lifetime);

//
// Adds an output buffer to the job context.
Expand Down
2 changes: 1 addition & 1 deletion bindings/headers/imageflow_pinvoke.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ bool imageflow_context_add_input_buffer(void *context,
int32_t io_id,
const uint8_t *buffer,
size_t buffer_byte_count,
Lifetime lifetime);
enum Lifetime lifetime);

//
// Adds an output buffer to the job context.
Expand Down
9 changes: 8 additions & 1 deletion bindings/headers/imageflow_short.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@









typedef enum imageflow_lifetime {
imageflow_lifetime_lifetime_outlives_function_call = 0,
imageflow_lifetime_lifetime_outlives_context = 1,
Expand All @@ -15,7 +22,7 @@ bool imageflow_context_add_input_buffer(void *context,
int32_t io_id,
const uint8_t *buffer,
size_t buffer_byte_count,
imageflow_lifetime lifetime);
enum imageflow_lifetime lifetime);

bool imageflow_context_add_output_buffer(void *context, int32_t io_id);

Expand Down
2 changes: 1 addition & 1 deletion imageflow_abi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ base64="0.21.0"

[build-dependencies]
imageflow_helpers = { path = "../imageflow_helpers", version = "*"}
cbindgen = "0.15"
cbindgen = "0.26"
regex = "1"

[features]
Expand Down

0 comments on commit 58cc201

Please sign in to comment.