diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2014-04-10 20:09:34 +0300 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2014-04-10 20:09:34 +0300 |
commit | 702d808b285931850e66900bd6c7c7319ae6d73c (patch) | |
tree | d970e5792181b669b191f9e58c1e6eb5c1f7dc38 /lib/internal.h | |
parent | a6d0413b972580f3bbfde8750090270b0d8d463e (diff) | |
download | bemenu-702d808b285931850e66900bd6c7c7319ae6d73c.tar.gz bemenu-702d808b285931850e66900bd6c7c7319ae6d73c.tar.bz2 bemenu-702d808b285931850e66900bd6c7c7319ae6d73c.zip |
Make it possible to set and get userdata pointers.
Diffstat (limited to 'lib/internal.h')
-rw-r--r-- | lib/internal.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/internal.h b/lib/internal.h index d0a9848..790b4ed 100644 --- a/lib/internal.h +++ b/lib/internal.h @@ -10,6 +10,12 @@ */ struct _bmItem { /** + * Userdata pointer. + * This pointer will be passed around with the item untouched. + */ + void *userdata; + + /** * Primary text shown on item as null terminated C "string". * Matching will be done against this text as well. */ @@ -60,6 +66,12 @@ struct _bmItemList { */ struct _bmMenu { /** + * Userdata pointer. + * This pointer will be passed around with the menu untouched. + */ + void *userdata; + + /** * Underlying renderer access. */ struct _bmRenderApi renderApi; |