Coda Distributed File System
parse_realms.h
Go to the documentation of this file.
1/* BLURB lgpl
2
3 Coda File System
4 Release 6
5
6 Copyright (c) 2002-2003 Carnegie Mellon University
7 Additional copyrights listed below
8
9This code is distributed "AS IS" without warranty of any kind under
10the terms of the GNU Library General Public Licence Version 2, as
11shown in the file LICENSE. The technical and financial contributors to
12Coda are listed in the file CREDITS.
13
14 Additional copyrights
15 none currently
16
17#*/
18
19#ifndef _PARSE_REALMS_H_
20#define _PARSE_REALMS_H_
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#include <coda_getaddrinfo.h>
27
28/* Given "name@realm", replaced the '@' with '\0' and returns a pointer to the
29 * realm part. If the input matches either 'name@' or 'name' it doesn't change
30 * the realm (but strips the '@'). */
31void SplitRealmFromName(char *name, const char **realm);
32
33/* Given a realm name, returns a list of ip-addresses of the realm's root
34 * servers. */
35void GetRealmServers(const char *realm_name, const char *service,
36 struct RPC2_addrinfo **res);
37
38#ifdef __cplusplus
39}
40#endif
41
42#endif /* _PARSE_REALMS_H_ */
name
Definition: pwdtopdbtool.py:40
void SplitRealmFromName(char *name, const char **realm)
Definition: parse_realms.c:44
void GetRealmServers(const char *realm_name, const char *service, struct RPC2_addrinfo **res)
Definition: parse_realms.c:116
Definition: rpc2_addrinfo.h:28