mirror of https://github.com/djcb/mu.git
* cosmetics
This commit is contained in:
parent
3e81be3c1e
commit
e47606c340
|
@ -146,7 +146,7 @@ typedef gboolean (*FieldMatchFunc) (const MuMsgField *field,
|
|||
gconstpointer data);
|
||||
|
||||
static const MuMsgField*
|
||||
find_field (FieldMatchFunc matcher, gconstpointer data)
|
||||
_find_field (FieldMatchFunc matcher, gconstpointer data)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i != sizeof(FIELD_DATA)/sizeof(FIELD_DATA[0]); ++i)
|
||||
|
@ -157,7 +157,7 @@ find_field (FieldMatchFunc matcher, gconstpointer data)
|
|||
}
|
||||
|
||||
static gboolean
|
||||
match_name (const MuMsgField *field, const gchar* name)
|
||||
_match_name (const MuMsgField *field, const gchar* name)
|
||||
{
|
||||
return strcmp (field->_name, name) == 0;
|
||||
}
|
||||
|
@ -166,11 +166,11 @@ const MuMsgField*
|
|||
mu_msg_field_from_name (const char* str)
|
||||
{
|
||||
g_return_val_if_fail (str, NULL);
|
||||
return find_field ((FieldMatchFunc)match_name, str);
|
||||
return _find_field ((FieldMatchFunc)_match_name, str);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
match_shortcut (const MuMsgField *field, char kar)
|
||||
_match_shortcut (const MuMsgField *field, char kar)
|
||||
{
|
||||
return field->_shortcut[0] == kar;
|
||||
}
|
||||
|
@ -178,7 +178,7 @@ match_shortcut (const MuMsgField *field, char kar)
|
|||
const MuMsgField*
|
||||
mu_msg_field_from_shortcut (char kar)
|
||||
{
|
||||
return find_field ((FieldMatchFunc)match_shortcut,
|
||||
return _find_field ((FieldMatchFunc)_match_shortcut,
|
||||
GUINT_TO_POINTER((guint)kar));
|
||||
}
|
||||
|
||||
|
@ -191,7 +191,7 @@ match_id (const MuMsgField *field, MuMsgFieldId id)
|
|||
const MuMsgField*
|
||||
mu_msg_field_from_id (MuMsgFieldId id)
|
||||
{
|
||||
return find_field ((FieldMatchFunc)match_id,
|
||||
return _find_field ((FieldMatchFunc)match_id,
|
||||
GUINT_TO_POINTER(id));
|
||||
}
|
||||
|
||||
|
|
|
@ -376,3 +376,4 @@ mu_store_xapian_foreach (MuStoreXapian *self,
|
|||
return MU_OK;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue