diff --git a/src/rend-posix.c b/src/rend-posix.c index 3c8e6b50..65c806c0 100644 --- a/src/rend-posix.c +++ b/src/rend-posix.c @@ -73,6 +73,9 @@ Change History (most recent first): $Log$ + Revision 1.3 2003/11/17 16:40:09 ron + add support for named db + Revision 1.2 2003/11/14 04:54:55 ron Use port 53 @@ -511,7 +514,7 @@ static void DeregisterOurServices(void) #pragma mark **** Main -int rend_init(pid_t *pid) { +int rend_init(pid_t *pid,char *name, int port) { mStatus status; mDNSBool result; @@ -531,8 +534,8 @@ int rend_init(pid_t *pid) { } DPRINTF(ERR_DEBUG,"Registering tcp service\n"); - RegisterOneService("mt-daapd","_http._tcp",NULL,0,3689); - RegisterOneService("mt-daapd","_daap._tcp",NULL,0,3689); + RegisterOneService(name,"_http._tcp",NULL,0,port); + RegisterOneService(name,"_daap._tcp",NULL,0,port); signal(SIGINT, HandleSigInt); // SIGINT is what you get for a Ctrl-C signal(SIGQUIT, HandleSigQuit); // SIGQUIT is what you get for a Ctrl-\ (indeed) diff --git a/src/rend.h b/src/rend.h index 1d7e173c..0e0a63f0 100644 --- a/src/rend.h +++ b/src/rend.h @@ -6,6 +6,6 @@ #ifndef _REND_H_ #define _REND_H_ -int rend_init(pid_t *pid); +int rend_init(pid_t *pid, char *name, int port); #endif /* _REND_H_ */