* mu-msg-field.(ch): some cosmetics
This commit is contained in:
@ -21,7 +21,7 @@
|
|||||||
#include "mu-msg-fields.h"
|
#include "mu-msg-fields.h"
|
||||||
|
|
||||||
enum _FieldFlags {
|
enum _FieldFlags {
|
||||||
FLAG_XAPIAN = 1 << 1, /* field stored in xapian db*/
|
FLAG_XAPIAN = 1 << 1, /* field stored as a string the in xapian db*/
|
||||||
FLAG_GMIME = 1 << 2, /* field retrieved by reading msg with gmime */
|
FLAG_GMIME = 1 << 2, /* field retrieved by reading msg with gmime */
|
||||||
FLAG_XAPIAN_INDEX = 1 << 3 /* field is indexed in xapian */
|
FLAG_XAPIAN_INDEX = 1 << 3 /* field is indexed in xapian */
|
||||||
};
|
};
|
||||||
|
|||||||
@ -48,7 +48,7 @@ static const guint MU_MSG_FIELD_ID_NONE = MU_MSG_FIELD_ID_NUM + 1;
|
|||||||
struct _MuMsgField;
|
struct _MuMsgField;
|
||||||
typedef struct _MuMsgField MuMsgField;
|
typedef struct _MuMsgField MuMsgField;
|
||||||
|
|
||||||
/* don't change the order, add new types at the end */
|
/* don't change the order, add new types at the end (before _NUM)*/
|
||||||
enum _MuMsgFieldType {
|
enum _MuMsgFieldType {
|
||||||
MU_MSG_FIELD_TYPE_STRING,
|
MU_MSG_FIELD_TYPE_STRING,
|
||||||
|
|
||||||
@ -66,6 +66,7 @@ typedef void (*MuMsgFieldForEachFunc) (const MuMsgField *field,
|
|||||||
gconstpointer data);
|
gconstpointer data);
|
||||||
void mu_msg_field_foreach (MuMsgFieldForEachFunc func, gconstpointer data);
|
void mu_msg_field_foreach (MuMsgFieldForEachFunc func, gconstpointer data);
|
||||||
|
|
||||||
|
|
||||||
const char* mu_msg_field_name (const MuMsgField *field) G_GNUC_CONST;
|
const char* mu_msg_field_name (const MuMsgField *field) G_GNUC_CONST;
|
||||||
const char* mu_msg_field_shortcut (const MuMsgField *field) G_GNUC_CONST;
|
const char* mu_msg_field_shortcut (const MuMsgField *field) G_GNUC_CONST;
|
||||||
const char* mu_msg_field_xapian_prefix (const MuMsgField *field) G_GNUC_PURE;
|
const char* mu_msg_field_xapian_prefix (const MuMsgField *field) G_GNUC_PURE;
|
||||||
|
|||||||
Reference in New Issue
Block a user