|
Revision 2038, 1.3 kB
(checked in by ensc, 4 years ago)
|
made it compatible to the new utilvserver_listparser_uint*() API and
added wrappers with a third 'bool *' arg
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
#ifdef HAVE_CONFIG_H |
|---|
| 20 |
# include <config.h> |
|---|
| 21 |
#endif |
|---|
| 22 |
|
|---|
| 23 |
#include "vserver.h" |
|---|
| 24 |
#include "internal.h" |
|---|
| 25 |
|
|---|
| 26 |
#include <string.h> |
|---|
| 27 |
|
|---|
| 28 |
static uint_least64_t |
|---|
| 29 |
vc_text2ccap_err(char const *str, size_t len, bool *failed) |
|---|
| 30 |
{ |
|---|
| 31 |
uint_least64_t res = vc_text2ccap(str, len); |
|---|
| 32 |
if (res==0) *failed = true; |
|---|
| 33 |
return res; |
|---|
| 34 |
} |
|---|
| 35 |
|
|---|
| 36 |
int |
|---|
| 37 |
vc_list2ccap(char const *str, size_t len, |
|---|
| 38 |
struct vc_err_listparser *err, |
|---|
| 39 |
struct vc_ctx_caps *caps) |
|---|
| 40 |
{ |
|---|
| 41 |
return utilvserver_listparser_uint64(str, len, |
|---|
| 42 |
err ? &err->ptr : 0, |
|---|
| 43 |
err ? &err->len : 0, |
|---|
| 44 |
&caps->ccaps, &caps->cmask, |
|---|
| 45 |
vc_text2ccap_err); |
|---|
| 46 |
} |
|---|