Skip to content

Commit

Permalink
Simplify set_hints_byte_array.
Browse files Browse the repository at this point in the history
  • Loading branch information
rafl committed Oct 4, 2007
1 parent 3564f9e commit 58fa1da
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions xs/Notify.xs
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,12 @@ void
notify_notification_set_hint_byte_array (notification, key, value)
NotifyNotification *notification
const gchar *key
const guchar *value
C_ARGS: notification, key, value, sv_len (ST (3))
PREINIT:
STRLEN len = 0;
INPUT:
const guchar *value = ($type)SvPVbyte ($arg, len);
C_ARGS:
notification, key, value, len

void
notify_notification_clear_hints (notification)
Expand Down

0 comments on commit 58fa1da

Please sign in to comment.