Skip to contentSkip to conversation

doc/obex-api: Split FilterBy into FilterAll and FilterAny

PATCH Applied Luiz Augusto von Dentz 1 participant 2 messages Sep 23, 2014 – Sep 26, 2014 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 doc/obex-api: Split FilterBy into FilterAll and FilterAny

From: Luiz Augusto von Dentz <[email protected]>

This makes a simpler API and document the fact that they cannot be used together.

---
 doc/obex-api.txt | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)
doc/obex-api.txt +11 -6
index f80ef39..a39abc0 100644
@@ -473,14 +473,19 @@ Filter:		string Format:
 
 			Possible values can be query with ListFilterFields.
 
-		array{string} FilterBy:
+		array{string} FilterAll:
 
-			Filter items by fields. Default do not filter by
-			fields.
+			Filter items by fields using AND logic, cannot be used
+			together with FilterAny.
 
-			Possible values can be query with ListFilterFields
-			excluding the first item that must be either '&' or
-			'|' that apply AND or OR logic respectively.
+			Possible values can be query with ListFilterFields.
+
+		array{string} FilterAny:
+
+			Filter items by fields using OR logic, cannot be used
+			together with FilterAll.
+
+			Possible values can be query with ListFilterFields.
 
 		bool ResetNewMissedCalls
 
Signature · 1 line
1.9.3
author maintainer Applied
#1 lore raw

Hi,

Quoted 39 lines · Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

This makes a simpler API and document the fact that they cannot be used together.

---
 doc/obex-api.txt | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)
doc/obex-api.txt +11 -7
index f80ef39..a39abc0 100644
@@ -473,14 +473,19 @@ Filter:           string Format:
 
                        Possible values can be query with ListFilterFields.
 
-               array{string} FilterBy:
+               array{string} FilterAll:
 
-                       Filter items by fields. Default do not filter by
-                       fields.
+                       Filter items by fields using AND logic, cannot be used
+                       together with FilterAny.
 
-                       Possible values can be query with ListFilterFields
-                       excluding the first item that must be either '&' or
-                       '|' that apply AND or OR logic respectively.
+                       Possible values can be query with ListFilterFields.
+
+               array{string} FilterAny:
+
+                       Filter items by fields using OR logic, cannot be used
+                       together with FilterAll.
+
+                       Possible values can be query with ListFilterFields.
 
                bool ResetNewMissedCalls
 
--
Quoted 1 line

1.9.3

Applied.

Signature · 1 line
Luiz Augusto von Dentz