netatalk
4.4.3
Free and Open Source Apple Filing Protocol (AFP) Server
Toggle main menu visibility
Loading...
Searching...
No Matches
uuid.h
Go to the documentation of this file.
1
/*
2
Copyright (c) 2008,2009 Frank Lahm <franklahm@gmail.com>
3
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or
7
(at your option) any later version.
8
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
13
*/
14
15
#ifndef AFP_UUID_H
16
#define AFP_UUID_H
17
18
#define UUID_BINSIZE 16
19
20
typedef
const
unsigned
char
*
uuidp_t
;
21
typedef
unsigned
char
atalk_uuid_t
[
UUID_BINSIZE
];
22
24
typedef
enum
{
UUID_USER
= 1,
25
UUID_GROUP
= 2,
26
UUID_ENOENT
= 4
27
}
28
uuidtype_t
;
29
#define UUIDTYPESTR_MASK 3
30
extern
char
*
uuidtype
[];
31
32
/********************************************************
33
* Interface
34
********************************************************/
35
36
extern
int
getuuidfromname
(
const
char
*name,
uuidtype_t
type
,
37
unsigned
char
*
uuid
);
38
extern
int
getnamefromuuid
(
const
unsigned
char
*
uuid
,
char
**name,
39
uuidtype_t
*
type
);
40
extern
void
localuuid_from_id
(
unsigned
char
*
buf
,
uuidtype_t
type
,
41
unsigned
int
id
);
42
extern
const
char
*
uuid_bin2string
(
const
unsigned
char
*
uuid
);
43
extern
void
uuid_string2bin
(
const
char
*uuidstring,
unsigned
char
*
uuid
);
44
extern
void
uuidcache_dump
(
void
);
45
46
#endif
/* AFP_UUID_H */
buf
static char buf[MAXPATHLEN+1]
Definition
afppasswd.c:75
uuid
uid_t uuid
type
static enum op type
Definition
nad_cp.c:96
getnamefromuuid
int getnamefromuuid(const unsigned char *uuid, char **name, uuidtype_t *type)
Definition
uuid.c:290
atalk_uuid_t
unsigned char atalk_uuid_t[UUID_BINSIZE]
Definition
uuid.h:21
localuuid_from_id
void localuuid_from_id(unsigned char *buf, uuidtype_t type, unsigned int id)
Definition
uuid.c:54
uuid_bin2string
const char * uuid_bin2string(const unsigned char *uuid)
Convert 16 byte binary uuid to neat ascii represantation including dashes.
Definition
uuid.c:115
uuidtype
char * uuidtype[]
Definition
uuid.c:38
getuuidfromname
int getuuidfromname(const char *name, uuidtype_t type, unsigned char *uuid)
Definition
uuid.c:156
uuidp_t
const unsigned char * uuidp_t
Definition
uuid.h:20
uuid_string2bin
void uuid_string2bin(const char *uuidstring, unsigned char *uuid)
convert ascii string that can include dashes to binary uuid.
Definition
uuid.c:78
uuidcache_dump
void uuidcache_dump(void)
Definition
cache.c:48
uuidtype_t
uuidtype_t
Definition
uuid.h:24
UUID_ENOENT
@ UUID_ENOENT
Definition
uuid.h:26
UUID_USER
@ UUID_USER
Definition
uuid.h:24
UUID_GROUP
@ UUID_GROUP
Definition
uuid.h:25
UUID_BINSIZE
#define UUID_BINSIZE
Definition
uuid.h:18
include
atalk
uuid.h
Generated by
1.17.0