-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
191 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2273,6 +2273,7 @@ dc_contact_t* dc_get_contact (dc_context_t* context, uint32_t co | |
* | ||
* - **DC_IMEX_IMPORT_SELF_KEYS** (2) - Import private keys found in the directory given as `param1`. | ||
* The last imported key is made the default keys unless its name contains the string `legacy`. Public keys are not imported. | ||
* If `param1` is a filename, import the private key from the file and make it the default. | ||
* | ||
* While dc_imex() returns immediately, the started job may take a while, | ||
* you can stop it using dc_stop_ongoing_process(). During execution of the job, | ||
|
@@ -5770,12 +5771,11 @@ char* dc_jsonrpc_next_response(dc_jsonrpc_instance_t* jsonrpc_instance); | |
* | ||
* @memberof dc_jsonrpc_instance_t | ||
* @param jsonrpc_instance jsonrpc instance as returned from dc_jsonrpc_init(). | ||
* @param method JSON-RPC method name, e.g. `check_email_validity`. | ||
* @param params JSON-RPC method parameters, e.g. `["[email protected]"]`. | ||
* @param input JSON-RPC request. | ||
* @return JSON-RPC response as string, must be freed using dc_str_unref() after usage. | ||
* On error, NULL is returned. | ||
* If there is no response, NULL is returned. | ||
*/ | ||
char* dc_jsonrpc_blocking_call(dc_jsonrpc_instance_t* jsonrpc_instance, const char *method, const char *params); | ||
char* dc_jsonrpc_blocking_call(dc_jsonrpc_instance_t* jsonrpc_instance, const char *input); | ||
|
||
/** | ||
* @class dc_event_emitter_t | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,5 +55,5 @@ | |
}, | ||
"type": "module", | ||
"types": "dist/deltachat.d.ts", | ||
"version": "1.122.0" | ||
"version": "1.123.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "deltachat-repl" | ||
version = "1.122.0" | ||
version = "1.123.0" | ||
license = "MPL-2.0" | ||
edition = "2021" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import json | ||
from queue import Queue | ||
|
||
import deltachat as dc | ||
|
@@ -227,10 +228,26 @@ def test_jsonrpc_blocking_call(tmp_path): | |
lib.dc_accounts_unref, | ||
) | ||
jsonrpc = ffi.gc(lib.dc_jsonrpc_init(accounts), lib.dc_jsonrpc_unref) | ||
res = from_optional_dc_charpointer( | ||
lib.dc_jsonrpc_blocking_call(jsonrpc, b"check_email_validity", b'["[email protected]"]'), | ||
res = json.loads( | ||
from_optional_dc_charpointer( | ||
lib.dc_jsonrpc_blocking_call( | ||
jsonrpc, | ||
json.dumps( | ||
{"jsonrpc": "2.0", "method": "check_email_validity", "params": ["[email protected]"], "id": "123"}, | ||
).encode("utf-8"), | ||
), | ||
), | ||
) | ||
assert res == "true" | ||
|
||
res = from_optional_dc_charpointer(lib.dc_jsonrpc_blocking_call(jsonrpc, b"check_email_validity", b'["alice"]')) | ||
assert res == "false" | ||
assert res == {"jsonrpc": "2.0", "id": "123", "result": True} | ||
|
||
res = json.loads( | ||
from_optional_dc_charpointer( | ||
lib.dc_jsonrpc_blocking_call( | ||
jsonrpc, | ||
json.dumps( | ||
{"jsonrpc": "2.0", "method": "check_email_validity", "params": ["alice"], "id": "456"}, | ||
).encode("utf-8"), | ||
), | ||
), | ||
) | ||
assert res == {"jsonrpc": "2.0", "id": "456", "result": False} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2023-09-12 | ||
2023-09-22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.