* [PATCH v1] obex: Add base implementation for get_mas_instance info and set notification filter
@ 2025-03-10 12:12 Amisha Jain
2025-03-10 13:29 ` [v1] " bluez.test.bot
0 siblings, 1 reply; 2+ messages in thread
From: Amisha Jain @ 2025-03-10 12:12 UTC (permalink / raw)
To: linux-bluetooth; +Cc: quic_mohamull, quic_hbandi, quic_anubhavg
This change is required for passing below testcases-
1. MAP/MSE/MMI/BV-02-C
Verify that the MCE can return user-readable information about the
MAS-instance to the MCE
2. MAP/MSE/MMN/BV-06-C
Verify that the MSE correctly responds to a request
to filter notifications.
We are adding the raw skeleton implementaton for PTS certification.
Although the functionality can be added later as per requirement.
---
obexd/plugins/mas.c | 52 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/obexd/plugins/mas.c b/obexd/plugins/mas.c
index bf8d689ad..6076ad44c 100644
--- a/obexd/plugins/mas.c
+++ b/obexd/plugins/mas.c
@@ -782,6 +782,36 @@ static void *notification_registration_open(const char *name, int oflag,
return mas;
}
+static void *message_get_instance_open(const char *name, int oflag,
+ mode_t mode, void *driver_data,
+ size_t *size, int *err)
+{
+ struct mas_session *mas = driver_data;
+
+ DBG("");
+
+ mas->buffer = g_string_new("Mas Instance 0");
+ mas->finished = TRUE;
+ *err = 0;
+
+ return mas;
+}
+
+static void *message_notification_filter_open(const char *name, int oflag,
+ mode_t mode, void *driver_data,
+ size_t *size, int *err)
+{
+ struct mas_session *mas = driver_data;
+
+ DBG("");
+
+ //TODO notifcation filter add
+ mas->finished = TRUE;
+ *err = 0;
+
+ return mas;
+}
+
static const struct obex_service_driver mas = {
.name = "Message Access server",
.service = OBEX_MAS,
@@ -866,6 +896,26 @@ static const struct obex_mime_type_driver mime_message_update = {
.write = any_write,
};
+static struct obex_mime_type_driver mime_message_instance = {
+ .target = MAS_TARGET,
+ .target_size = TARGET_SIZE,
+ .mimetype = "x-bt/MASInstanceInformation",
+ .open = message_get_instance_open,
+ .close = any_close,
+ .read = any_read,
+ .write = any_write,
+};
+
+static struct obex_mime_type_driver mime_message_notification_filter = {
+ .target = MAS_TARGET,
+ .target_size = TARGET_SIZE,
+ .mimetype = "x-bt/MAP-notification-filter",
+ .open = message_notification_filter_open,
+ .close = any_close,
+ .read = any_read,
+ .write = any_write,
+};
+
static const struct obex_mime_type_driver *map_drivers[] = {
&mime_map,
&mime_message,
@@ -874,6 +924,8 @@ static const struct obex_mime_type_driver *map_drivers[] = {
&mime_notification_registration,
&mime_message_status,
&mime_message_update,
+ &mime_message_instance,
+ &mime_message_notification_filter,
NULL
};
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [v1] obex: Add base implementation for get_mas_instance info and set notification filter
2025-03-10 12:12 [PATCH v1] obex: Add base implementation for get_mas_instance info and set notification filter Amisha Jain
@ 2025-03-10 13:29 ` bluez.test.bot
0 siblings, 0 replies; 2+ messages in thread
From: bluez.test.bot @ 2025-03-10 13:29 UTC (permalink / raw)
To: linux-bluetooth, quic_amisjain
[-- Attachment #1: Type: text/plain, Size: 1261 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=942240
---Test result---
Test Summary:
CheckPatch PENDING 0.21 seconds
GitLint PENDING 0.19 seconds
BuildEll PASS 20.80 seconds
BluezMake PASS 1569.54 seconds
MakeCheck PASS 13.15 seconds
MakeDistcheck PASS 160.47 seconds
CheckValgrind PASS 218.67 seconds
CheckSmatch PASS 287.82 seconds
bluezmakeextell PASS 101.65 seconds
IncrementalBuild PENDING 0.26 seconds
ScanBuild PASS 891.86 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-10 13:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-10 12:12 [PATCH v1] obex: Add base implementation for get_mas_instance info and set notification filter Amisha Jain
2025-03-10 13:29 ` [v1] " bluez.test.bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).