#include "internal.h"
int
-avahi_client_set_errno (AvahiClient *client, int errno)
+avahi_client_set_errno (AvahiClient *client, int error)
{
- if (client == NULL) return errno;
+ if (client == NULL) return error;
- client->errno = errno;
+ client->error = error;
- return errno;
+ return error;
}
static
int
avahi_client_errno (AvahiClient *client)
{
- return client->errno;
+ return client->error;
}
AvahiClient*
struct _AvahiClient
{
DBusConnection *bus;
- int errno;
+ int error;
AvahiClientCallback callback;
void *user_data;
AVAHI_LLIST_HEAD(AvahiEntryGroup, groups);
AVAHI_LLIST_FIELDS(AvahiServiceTypeBrowser, service_type_browsers);
};
-int avahi_client_set_errno (AvahiClient *client, int errno);
+int avahi_client_set_errno (AvahiClient *client, int error);
void avahi_entry_group_state_change (AvahiEntryGroup *group, int state);