Skip to content

Commit

Permalink
[libmce-glib] Added remove_all_handlers macros. JB#36523
Browse files Browse the repository at this point in the history
mce_display_remove_all_handlers and mce_tklock_remove_handlers
  • Loading branch information
monich committed Sep 15, 2017
1 parent aa002cb commit b57b52e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion include/mce_display.h
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2016 Jolla Ltd.
* Copyright (C) 2016-2017 Jolla Ltd.
* Contact: Slava Monich <slava.monich@jolla.com>
*
* You may use this file under the terms of BSD license as follows:
Expand Down Expand Up @@ -96,6 +96,9 @@ mce_display_remove_handlers(
gulong *ids,
guint count);

#define mce_display_remove_all_handlers(d, ids) \
mce_display_remove_handlers(d, ids, G_N_ELEMENTS(ids))

G_END_DECLS

#endif /* MCE_DISPLAY_H */
Expand Down
5 changes: 4 additions & 1 deletion include/mce_tklock.h
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2016 Jolla Ltd.
* Copyright (C) 2016-2017 Jolla Ltd.
* Contact: Slava Monich <slava.monich@jolla.com>
*
* You may use this file under the terms of BSD license as follows:
Expand Down Expand Up @@ -107,6 +107,9 @@ mce_tklock_remove_handlers(
gulong *ids,
guint count);

#define mce_tklock_remove_all_handlers(t, ids) \
mce_tklock_remove_handlers(t, ids, G_N_ELEMENTS(ids))

G_END_DECLS

#endif /* MCE_TKLOCK_H */
Expand Down

0 comments on commit b57b52e

Please sign in to comment.