/* Automatically generated, do not edit.  */

#ifndef GUILE_AVAHI_CLIENT_ENUMS_H
#define GUILE_AVAHI_CLIENT_ENUMS_H
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <libguile.h>
#include <avahi-common/error.h>
#include <avahi-common/watch.h>
#ifndef AVAHI_ERR_OK
# define AVAHI_ERR_OK AVAHI_OK
#endif
SCM_API scm_t_bits scm_tc16_avahi_client_state_enum;
SCM_API SCM scm_avahi_client_state_enum_values;
static inline AvahiClientState
scm_to_avahi_client_state (SCM obj, unsigned pos, const char *func)
#define FUNC_NAME func
{
  SCM_VALIDATE_SMOB (pos, obj, avahi_client_state_enum);
  return ((AvahiClientState) SCM_SMOB_DATA (obj));
}
#undef FUNC_NAME
static inline SCM
scm_from_avahi_client_state (AvahiClientState c_obj)
{
  SCM pair, result = SCM_BOOL_F;
  for (pair = scm_avahi_client_state_enum_values; scm_is_pair (pair); pair = SCM_CDR (pair))
    {
      SCM enum_smob;
      enum_smob = SCM_CAR (pair);
      if ((AvahiClientState) SCM_SMOB_DATA (enum_smob) == c_obj)
        {
          result = enum_smob;
          break;
        }
    }
  return result;
}
SCM_API scm_t_bits scm_tc16_avahi_client_flag_enum;
SCM_API SCM scm_avahi_client_flag_enum_values;
static inline AvahiClientFlags
scm_to_avahi_client_flag (SCM obj, unsigned pos, const char *func)
#define FUNC_NAME func
{
  SCM_VALIDATE_SMOB (pos, obj, avahi_client_flag_enum);
  return ((AvahiClientFlags) SCM_SMOB_DATA (obj));
}
#undef FUNC_NAME
static inline SCM
scm_from_avahi_client_flag (AvahiClientFlags c_obj)
{
  SCM pair, result = SCM_BOOL_F;
  for (pair = scm_avahi_client_flag_enum_values; scm_is_pair (pair); pair = SCM_CDR (pair))
    {
      SCM enum_smob;
      enum_smob = SCM_CAR (pair);
      if ((AvahiClientFlags) SCM_SMOB_DATA (enum_smob) == c_obj)
        {
          result = enum_smob;
          break;
        }
    }
  return result;
}
#endif
