1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-05 19:42:04 +02:00

Prepend internal structure represenation with an underscore

This commit is contained in:
B. Petersen 2018-01-02 15:17:50 +01:00
parent 13bc6c4339
commit 1f29ef65b3
5 changed files with 15 additions and 11 deletions

View file

@ -27,12 +27,9 @@ extern "C" {
#endif
/**
* An object representing a single chat in memory. Chat objects are created using eg. mrmailbox_get_chat() and
* are not updated on database changes; if you want an update, you have to recreate the
* object.
*/
typedef struct mrchat_t
/** the structure behind mrchat_t */
struct _mrchat
{
/** @privatesection */
uint32_t m_magic;
@ -45,7 +42,7 @@ typedef struct mrchat_t
mrmailbox_t* m_mailbox; /**< The mailbox object the chat belongs to. */
char* m_grpid; /**< Group ID that is used by all clients. Only used if the chat is a group. NULL if unset */
mrparam_t* m_param; /**< Additional parameters for a chat. Should not be used directly. */
} mrchat_t;
};
#ifdef __cplusplus

View file

@ -324,7 +324,7 @@ char* mrchat_get_draft(mrchat_t* chat)
time_t mrchat_get_draft_timestamp(mrchat_t* chat)
{
if( chat == NULL || chat->m_magic != MR_CHAT_MAGIC ) {
return NULL;
return 0;
}
return chat->m_draft_timestamp;
}

View file

@ -43,7 +43,14 @@ typedef struct mrparam_t mrparam_t;
#define MR_CHAT_TYPE_GROUP 120
typedef struct mrchat_t mrchat_t;
/**
* @class mrchat_t
*
* An object representing a single chat in memory. Chat objects are created using eg. mrmailbox_get_chat() and
* are not updated on database changes; if you want an update, you have to recreate the
* object.
*/
typedef struct _mrchat mrchat_t;
mrchat_t* mrchat_new (mrmailbox_t*);

View file

@ -29,7 +29,7 @@ extern "C" {
typedef struct mrmailbox_t mrmailbox_t;
typedef struct mrlot_t mrlot_t;
typedef struct mrchat_t mrchat_t;
typedef struct _mrchat mrchat_t;
typedef struct mrarray_t mrarray_t;

View file

@ -30,7 +30,7 @@ extern "C" {
typedef struct mrmsg_t mrmsg_t;
typedef struct mrchat_t mrchat_t;
typedef struct _mrchat mrchat_t;
typedef struct mrmailbox_t mrmailbox_t;