B. Petersen
7421b0de6c
adapt the ffi-examples to reality, free stuff
2019-12-06 20:08:57 +01:00
holger krekel
d96dba336b
Update deltachat-ffi/deltachat.h
...
fix doc
2019-12-05 18:57:19 +01:00
holger krekel
74825a0f57
working example
2019-12-05 18:57:19 +01:00
holger krekel
4a23d12df2
add a ffi-definiton for a new get-chat summary function that returns json
2019-12-05 18:57:19 +01:00
B. Petersen
521e44bd54
add ffi for update_device_chats()
2019-12-02 16:33:24 +01:00
holger krekel
76610f1e72
rename to more specific name, also not using the difficult to type "succeeded" word :)
2019-11-27 13:02:07 +01:00
B. Petersen
f53b3c2e7b
add DC_EVENT_SECUREJOIN_SUCCEEDED
2019-11-27 00:43:50 +01:00
B. Petersen
e4e6a00fe4
rename has_device_msg() to was_device_msg_ever_added() what describes better what the function is doing
2019-11-19 13:21:02 +01:00
B. Petersen
700e10bc0e
use dc_add_device_msg() also to add labels-only, this is clearer as having a function with 'skip' in the name
2019-11-19 13:05:01 +01:00
B. Petersen
d3fa289f27
streamline dc_add_device_msg_once|unlabelled() to one function
2019-11-19 11:49:02 +01:00
B. Petersen
1534a07ded
add dc_has_device_msg()
2019-11-18 17:31:03 +01:00
B. Petersen
a4e92694ba
name unlabelled device-messages as such
2019-11-18 16:47:18 +01:00
B. Petersen
035da9e5d7
add dc_skip_device_msg() and belonging tests
2019-11-18 16:47:18 +01:00
B. Petersen
fed6f4ab8a
do not re-add device-messages deleted by the user
2019-11-18 16:47:18 +01:00
B. Petersen
b42d8799b4
add dc_add_device_msg_once() to fii
2019-11-12 16:10:48 +01:00
B. Petersen
154cb2db83
add missing DC_STR_DEVICE_MESSAGES
2019-11-10 16:31:12 +01:00
B. Petersen
34f9961857
restore config-param if configure() fails
2019-11-06 22:59:14 +01:00
B. Petersen
515f0c5089
correct ffi return value of dc_add_device_msg()
2019-11-06 13:33:30 +01:00
B. Petersen
4c30bf80ce
target comments of @flub
2019-11-06 13:33:30 +01:00
B. Petersen
50539465b9
prototype a device-chat
2019-11-06 13:33:30 +01:00
B. Petersen
be08bcb22b
rename DC_CONTACT_ID_DEVICE to DC_CONTACT_ID_INFO to be in-line with dc_msg_is_info()
2019-11-06 13:33:30 +01:00
B. Petersen
ec8dbddcfb
tweak ffi documentation wrt certificate checks
2019-11-01 18:06:01 +01:00
B. Petersen
bc699f17d9
avoid usage of get_subtitle() in repl-tool, remove dc_chat_get_subtitle() from documentation.
2019-11-01 13:19:47 +01:00
B. Petersen
7530abd581
remove unneeded const attribtute
2019-10-30 16:36:28 +01:00
B. Petersen
62019f57e9
fix some doxygen links and overviews
2019-10-30 16:09:04 +01:00
holger krekel
911c0e45dc
expose empty server functionality and test it (also introducing a new DC_EVENT_IMAP_FOLDER_EMPTIED event)
2019-10-29 22:19:13 +01:00
Alexander Krotov
c85f1b20ca
Add constants for certificate checks configuration
2019-10-27 11:51:14 +01:00
B. Petersen
e1fc5863c2
target comments of @hpk42
2019-10-10 00:29:52 +02:00
B. Petersen
f0791149e6
document dc_str_unref()
2019-10-10 00:29:52 +02:00
B. Petersen
297b032bdc
fix doxygen, some rewording
2019-10-10 00:29:52 +02:00
holger krekel
24c0a833bd
address @flub comments
2019-10-09 15:59:31 +02:00
holger krekel
45f011c63c
expose and test set_stock_translation to Python
2019-10-09 15:59:31 +02:00
holger krekel
b82af9fff3
introduce set_stock_translation and remove call to DC_EVENT_GET_STRING
2019-10-09 15:59:31 +02:00
holger krekel
603761e4b7
add DC_EVENT_DELETED_BLOB_FILE
2019-10-03 18:01:56 +02:00
holger krekel
467c09f491
introduce DC_EVENT_NEW_BLOB_FILE event and test for it
2019-10-03 18:01:56 +02:00
holger krekel
509a21ff05
introduce DC_IMAP_MESSAGE_MOVED event and try harder to send out MDNs
2019-10-02 23:51:14 +02:00
holger krekel
96066712bd
add and test for DC_IMAP_MESSAGE_DELETED event
2019-10-02 23:51:14 +02:00
björn petersen
c376de9b5e
add sticker type ( #653 )
...
* add sticker type
this pr adds the message type 'sticker'.
stickers are handled as normal images
but tagged with the header `Chat-Content: sticker`
it's up to the ui to render these stickers appropriate.
* cargo fmt
2019-09-30 20:55:27 +02:00
B. Petersen
3a16ad89bd
make ffi-string-parameter const
...
typically, nearly all string-parameters in the ffi should be const.
one of the few exceptions is dc_str_unref() that really modifies the given data.
2019-09-28 02:56:27 +02:00
Floris Bruynooghe
69f1497986
Make dc_get_info() work on a closed context
...
There is very little API guarantees about this, but clients seem to
expect *something* to work on a closed context. So split this up into
static info an more dynamic context-related info, but let's not
provide any guarantees about what keys are available when.
Fixes #599
2019-09-26 14:22:03 +02:00
holger krekel
91b98e8c6d
as discussed during camp and otherwise ... add dc_perform_{mvbox,sentbox}_jobs hooks which, however, for now have an empty implementation. They can already be called from UIs, though. Next step is refactoring imap-job handling to only execute jobs belonging to the respective imap folder.
2019-09-20 01:03:25 +02:00
B. Petersen
4f880932ae
change oder of typedefs, function-definitions and defines
...
as c is top-down, we start with the typedefs
so that functions can use them freely.
after that, the functions are declared
and finally the #defines (for less noise in the function sections).
grouping is done by classes.
2019-09-19 12:58:26 +02:00
B. Petersen
62e8c2497c
add missing doxygen commands, fix typo
2019-09-19 12:58:26 +02:00
Simon Laux
37f854be3e
Add provider info functions to the FFI API
...
A lot of work from @Hocuri and @Simon-Laux mostly.
This exposes the API of the deltachat-provider-overview crate on the
deltachat FFI API, allowing clients to use it to help users set up
their accounts.
2019-09-19 07:17:44 +02:00
Floris Bruynooghe
a3f64d4e95
Handle new Context creation API on the FFI
...
This adopts the FFI API to use the new Context::new() and
Contest::drop() Rust-style APIs while preserving the semantics of the
existing FFI API. It introduces a wrapper around the context which
keeps an optional reference to the actual context, changing dc_open()
and dc_close() to create/destroy the actual reference.
This changes the events emitted on closing slightly: they only get
emitted when dc_close() was called while the context was open. While
dc_close() remains idempotent in that it can still be called safely
multiple times, the close events will only occur if the context is
actually closed.
2019-09-15 02:37:13 +02:00
B. Petersen
f13b068479
remove accidentally added function body
2019-08-26 19:17:58 +02:00
B. Petersen
850941bf8b
target doxygen warnings
2019-08-26 19:17:58 +02:00
B. Petersen
3eea175d36
ffi docs for dc_lot_t
2019-08-26 19:17:58 +02:00
B. Petersen
8f24ff74dd
ffi docs for dc_contact_t
2019-08-26 19:17:58 +02:00
B. Petersen
6fab7d0a27
ffi docs for dc_msg_t
2019-08-26 19:17:58 +02:00