C wrapper for DMLite utils.
More...
#include "any.h"
#include "dmlite/common/config.h"
#include <limits.h>
#include <stdint.h>
Go to the source code of this file.
C wrapper for DMLite utils.
- Author
- Alejandro Álvarez Ayllon aalva.nosp@m.rez@.nosp@m.cern..nosp@m.ch
◆ ACL_DEFAULT
◆ ACL_ENTRIES_MAX
#define ACL_ENTRIES_MAX 300 |
◆ ACL_GROUP
◆ ACL_GROUP_OBJ
◆ ACL_MASK
◆ ACL_OTHER
◆ ACL_SIZE
◆ ACL_USER
◆ ACL_USER_OBJ
◆ CSUMTYPE_MAX
◆ CSUMVALUE_MAX
◆ GUID_MAX
◆ HOST_NAME_MAX
#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX |
◆ QUERY_MAX
◆ SCHEME_MAX
◆ URL_MAX
◆ dmlite_aclentry
◆ dmlite_url
◆ dmlite_acl_free()
Frees an array of ACL entries as returned by dm_deserialize_acls.
- Parameters
-
nEntries | The number of entries in the array. |
acl | The ACL. |
◆ dmlite_deserialize_acl()
void dmlite_deserialize_acl |
( |
const char * |
buffer, |
|
|
unsigned * |
nEntries, |
|
|
dmlite_aclentry ** |
acl |
|
) |
| |
Deserializes a string into an array of ACL entries.
- Parameters
-
buffer | The string. |
nEntries | The resulting number of ACL entries. |
acl | The resulting ACL. |
◆ dmlite_parse_url()
dmlite_url* dmlite_parse_url |
( |
const char * |
source | ) |
|
Parses a URL.
- Parameters
-
- Returns
- Parsed URL.
- Note
- dest->query must be NULL for the first call, so it is internally allocated.
◆ dmlite_serialize_acls()
void dmlite_serialize_acls |
( |
unsigned |
nEntries, |
|
|
dmlite_aclentry * |
acl, |
|
|
char * |
buffer, |
|
|
size_t |
bsize |
|
) |
| |
Serializes into a string a set of ACL entries.
- Parameters
-
nEntries | The number of ACL entries in the array. |
acl | The ACL. |
buffer | Where to put the resulting string. |
bsize | The buffer size. |
◆ dmlite_url_free()
Frees the given url.
- Parameters
-
◆ dmlite_url_new()
◆ dmlite_url_serialize()
char* dmlite_url_serialize |
( |
dmlite_url * |
url, |
|
|
char * |
buffer, |
|
|
size_t |
bsize |
|
) |
| |
Serializes a URL.
- Parameters
-
url | The url to serialize. |
buffer | Where to put the serialized version. |
bsize | The buffer size. |
- Returns
- Buffer, NULL on error.