Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 182046 | Differences between
and this patch

Collapse All | Expand All

(-)afpfs-ng-0.8.1/lib/identify.c (+24 lines)
Line 0 Link Here
1
#include <string.h>
2
#include <afpfs-ng/afp.h>
3
4
5
/* 
6
 * afp_server_identify()
7
 *
8
 * Identifies a server
9
 *
10
 * Right now, this only does identification using the machine_type
11
 * given in getsrvrinfo, but this could later use mDNS to get 
12
 * more details.
13
 */
14
void afp_server_identify(struct afp_server * s)
15
{
16
	if (strcmp(s->machine_type,"Netatalk")==0)
17
		s->server_type=AFPFS_SERVER_TYPE_NETATALK;
18
	else if (strcmp(s->machine_type,"AirPort")==0)
19
		s->server_type=AFPFS_SERVER_TYPE_AIRPORT;
20
	else if (strcmp(s->machine_type,"Macintosh")==0)
21
		s->server_type=AFPFS_SERVER_TYPE_MACINTOSH;
22
	else
23
		s->server_type=AFPFS_SERVER_TYPE_UNKNOWN;
24
}

Return to bug 182046