summaryrefslogtreecommitdiffstats
path: root/avahi-core/server.c
diff options
context:
space:
mode:
authorTrent Lloyd <lathiat@bur.st>2005-08-09 14:18:10 +0000
committerTrent Lloyd <lathiat@bur.st>2005-08-09 14:18:10 +0000
commitbeb3eff6ff01d12230e7b21d147392854a07c634 (patch)
tree402cd1b1cc146eff480074630459e4c9cb6b7f66 /avahi-core/server.c
parenta48e94008dd33abc4f4b07012155e48f977a2e45 (diff)
* Split out error code handling to avahi-common/error.[ch]
* Redefine states/evvents in avahi-common/defs.h not to have -1 values - Update avahi-utils/avahi/__init__.py to reflect this git-svn-id: file:///home/lennart/svn/public/avahi/trunk@283 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core/server.c')
-rw-r--r--avahi-core/server.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/avahi-core/server.c b/avahi-core/server.c
index 541c7b7..4d5a4ec 100644
--- a/avahi-core/server.c
+++ b/avahi-core/server.c
@@ -2294,37 +2294,6 @@ AvahiServerConfig* avahi_server_config_copy(AvahiServerConfig *ret, const AvahiS
return ret;
}
-const gchar *avahi_strerror(gint error) {
- g_assert(-error >= 0 && -error < -AVAHI_ERR_MAX);
-
- const gchar * const msg[- AVAHI_ERR_MAX] = {
- "OK",
- "Operation failed",
- "Bad state",
- "Invalid host name",
- "Invalid domain name",
- "No suitable network protocol available",
- "Invalid DNS TTL",
- "Resource record key is pattern",
- "Local name collision",
- "Invalid record",
- "Invalid service name",
- "Invalid service type",
- "Invalid port number",
- "Invalid record key",
- "Invalid address",
- "Timeout reached",
- "Too many clients",
- "Too many objects",
- "Too many entries",
- "OS Error",
- "Access denied",
- "Invalid operation"
- };
-
- return msg[-error];
-}
-
gint avahi_server_errno(AvahiServer *s) {
g_assert(s);