Permit DNS SRV record lookups to be used by the Windows afsconf_GetAfsdbInfo
[openafs.git] / src / WINNT / afsd / cm_dns.h
index 1e5d28c..fb907ba 100644 (file)
 
 /* this function will continue to return cell server
    names for the given cell, ending in null */
-int getAFSServer(char *cellname, int *cellHosts, int *numServers, int *ttl);
+int getAFSServer(const char *service, const char *protocol, const char *cellname,
+                 unsigned short afsdbPort,
+                 int *cellHostAddrs, char cellHostNames[][MAXHOSTCHARS],
+                 unsigned short ports[], unsigned short ipRanks[], int *numServers, int *ttl);
+
+/* Same as above, but using cm_unichar_t.  Note that this functon will
+   only be defined for DNSAPI_ENV. */
+int getAFSServerW(const cm_unichar_t *service, const cm_unichar_t *protocol, const cm_unichar_t *cellName,
+                  unsigned short afsdbPort,
+                  int *cellHostAddrs,
+                  cm_unichar_t cellHostNames[][MAXHOSTCHARS], 
+                  unsigned short ports[],
+                  unsigned short ipRanks[],
+                  int *numServers, int *ttl);
 
 /* a supplement for the DJGPP gethostbyname ... which 
    never bothers calling a DNS server ... so this function