Commit Graph
8 Commits
Author SHA1 Message Date
Tobias Brunner 19ef2aec15 Update copyright headers after acquisition by secunet 2022-06-28 10:22:56 +02:00
Martin Willi 064fe9c963 enum: Return boolean result for enum_from_name() lookup
Handling the result for enum_from_name() is difficult, as checking for
negative return values requires a cast if the enum type is unsigned. The new
signature clearly differentiates lookup result from lookup value.

Further, this actually allows to convert real -1 enum values, which could not
be distinguished from "not-found" and the -1 return value.

This also fixes several clang warnings where enums are unsigned.
2014-05-16 15:42:07 +02:00
Tobias Brunner 3dcffed682 The this->data member is never NULL 2012-09-28 17:09:16 +02:00
Martin Willi 47b8f6ef4b Invoke bus_t.message hook twice, once plain and parsed, once encoded and encrypted 2012-03-20 17:31:37 +01:00
Martin Willi c7f7a0ba06 Use strncaseeq instead of strncasecmp 2011-01-05 16:45:59 +01:00
Martin Willi 1f42c80942 The add_payload hook supports replacing existing payloads of the same type 2011-01-05 16:45:45 +01:00
Martin Willi 60b14332b3 Fix insertion of non hex encoded payload data 2011-01-05 16:45:44 +01:00
Martin Willi 9b2ed9501f Added a hook to inject custom payloads with critical bit 2011-01-05 16:45:43 +01:00