path: root/src/NotificationProxy.c
diff options
authorGravatar Martin Szulecki2010-01-08 14:24:50 +0100
committerGravatar Martin Szulecki2010-01-08 14:24:50 +0100
commite87f65f1b17186c6246fce26cdbd05d087ec28b9 (patch)
tree74e72b896c452d03d7abaaa834215a5bdf66c695 /src/NotificationProxy.c
parent0e8a77deea7b91de50c0d5ef29eb6c088d4abd37 (diff)
Enforce a set of notifications for observing instead of using defaults
We don't need to maintain defaults, applications should know and specifiy which notification ids they want to observe themselfs.
Diffstat (limited to 'src/NotificationProxy.c')
1 files changed, 2 insertions, 3 deletions
diff --git a/src/NotificationProxy.c b/src/NotificationProxy.c
index 5ae59f2..cba12b9 100644
--- a/src/NotificationProxy.c
+++ b/src/NotificationProxy.c
@@ -236,8 +236,7 @@ np_error_t np_observe_notification( np_client_t client, const char *notification
* @param client The client to send to
* @param notification_spec Specification of the notifications that should be
* observed. This is expected to be an array of const char* that MUST have a
- * terminating NULL entry. However this parameter can be NULL; in this case,
- * the default set of notifications will be used.
+ * terminating NULL entry.
* @return NP_E_SUCCESS on success, NP_E_INVALID_ARG when client is null,
* or an error returned by np_observe_notification.
@@ -253,7 +252,7 @@ np_error_t np_observe_notifications(np_client_t client, const char **notificatio
if (!notifications) {
- notifications = np_default_notifications;
+ return NP_E_INVALID_ARG;
while (notifications[i]) {