forked from pEp.foundation/libpEpTransport
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
487 B
Plaintext
35 lines
487 B
Plaintext
include yslt.yml2
|
|
|
|
tstylesheet {
|
|
include standardlib.ysl2
|
|
|
|
template "/enum"
|
|
||
|
|
#include <pEp/«@name».h>
|
|
|
|
const char *«@name»_label(PEP_«@name» value)
|
|
{
|
|
switch (value) {
|
|
`` apply "item|doc"
|
|
|
|
default:
|
|
return "unknown";
|
|
}
|
|
}
|
|
||
|
|
|
|
template "item"
|
|
||
|
|
case PEP_«yml:abbr(../@name)»_«@name»:
|
|
return "«translate(@name,'_',' ')»";
|
|
||
|
|
|
|
template "doc"
|
|
||
|
|
|
|
// «.»
|
|
|
|
||
|
|
}
|
|
|