aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/enum.c
Commit message (Collapse)AuthorAgeFilesLines
* enum-names: Fail gracefully when passing a NULL value as enum namesMartin Willi2015-04-151-1/+5
|
* enum: Extend printf hook to print flagsThomas Egerer2015-03-031-5/+88
| | | | Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
* enum: Return boolean result for enum_from_name() lookupMartin Willi2014-05-161-3/+4
| | | | | | | | | | | 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.
* enum: Don't directly include enum.hMartin Willi2014-05-161-0/+1
| | | | | To allow enum.h to depend on utils.h definitions, avoid its direct inclusion. Instead include utils.h, which includes enum.h as well.
* Gracefully handle NULL as argument for enum_from_name()Tobias Brunner2013-06-111-1/+1
|
* Moved enum_name_t to utils folderTobias Brunner2012-10-241-0/+81