diff --git a/doc/obex-api.txt b/doc/obex-api.txt
index b2998de..41c40a7 100644
--- a/doc/obex-api.txt
+++ b/doc/obex-api.txt
Returns an array containing the messages found in the
given folder.
- Possible Filters: Offset, MaxCount, Fields, Type,
- PeriodStart, PeriodEnd, Status, Recipient, Sender,
+ Possible Filters: Offset, MaxCount, SubjectLength, Fields,
+ Type, PeriodStart, PeriodEnd, Status, Recipient, Sender,
Priority
Each message is represented by an object path followed
Maximum number of items, default is 1024
+ byte SubjectLength:
+
+ Maximum length of the Subject property in the
+ message, default is 256
+
array{string} Fields:
Message fields, default is all values.
diff --git a/obexd/client/map.c b/obexd/client/map.c
index 29efd51..54a6a7f 100644
--- a/obexd/client/map.c
+++ b/obexd/client/map.c
return reply;
}
+static GObexApparam *parse_subject_length(GObexApparam *apparam,
+ DBusMessageIter *iter)
+{
+ guint8 num;
+
+ if (dbus_message_iter_get_arg_type(iter) != DBUS_TYPE_BYTE)
+ return NULL;
+
+ dbus_message_iter_get_basic(iter, &num);
+
+ return g_obex_apparam_set_uint8(apparam, MAP_AP_SUBJECTLENGTH, num);
+}
+
static uint64_t get_filter_mask(const char *filterstr)
{
int i;
} else if (strcasecmp(key, "MaxCount") == 0) {
if (parse_max_count(apparam, &value) == NULL)
return NULL;
+ } else if (strcasecmp(key, "SubjectLength") == 0) {
+ if (parse_subject_length(apparam, &value) == NULL)
+ return NULL;
} else if (strcasecmp(key, "Fields") == 0) {
if (parse_fields(apparam, &value) == NULL)
return NULL;