aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gnocksy/gns_glue.h
blob: 7a872d6831067e39ad7691134bfe33c12d1eb683 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * Glue function to return the authoritative part
 * of a name. i.e. the site of origin
 *
 * @param name the name to process
 * @param auth pointer where the result is stored
 * @return 0 on success < 0 on failure
 */
int
gns_glue_get_auth ( char* name, char* auth );

/*
 * Glue function to return the short version of
 * a given name
 *
 * @param name the name to shorten
 * @param shortened pointer where the result will be stored
 * @return 0 on success < 0 on failure
 */
int
gns_glue_shorten ( char* name, char* shortened);

/*
 * Glue function to expand .+ urls and shorted the
 * resulting name
 *
 * @param to_expand the .+ name to expand
 * @param host the site of origin
 * @param shortened the expanded and shortened result pointer
 */
int
gns_glue_expand_and_shorten (char* to_expand,
                             char* host,
                             char* shortened);