Delta Chat Core C-API
src
dc_stock.h
1
#ifndef __DC_STOCK_H__
2
#define __DC_STOCK_H__
3
#ifdef __cplusplus
4
extern
"C"
{
5
#endif
6
7
8
#include <stdlib.h>
9
#include <string.h>
10
11
12
/* Return the string with the given ID by calling DC_EVENT_GET_STRING.
13
The result must be free()'d! */
14
char
* dc_stock_str (
dc_context_t
*,
int
id
);
15
16
17
/* Replaces the first `%1$s` in the given String-ID by the given value.
18
The result must be free()'d! */
19
char
* dc_stock_str_repl_string (
dc_context_t
*,
int
id
,
const
char
* value);
20
char
* dc_stock_str_repl_int (
dc_context_t
*,
int
id
,
int
value);
21
22
23
/* Replaces the first `%1$s` and `%2$s` in the given String-ID by the two given strings.
24
The result must be free()'d! */
25
char
* dc_stock_str_repl_string2 (
dc_context_t
*,
int
id
,
const
char
*,
const
char
*);
26
27
/* Misc. */
28
char
* dc_stock_system_msg(
dc_context_t
* context,
int
str_id,
29
const
char
* param1,
const
char
* param2,
30
uint32_t from_id);
31
32
33
#ifdef __cplusplus
34
}
/* /extern "C" */
35
#endif
36
#endif
/* __DC_STOCK_H__ */
37
dc_context_t
An object representing a single account.
Generated by
1.8.13