domain.h
Go to the documentation of this file.
00001 #ifndef foodomainhfoo
00002 #define foodomainhfoo
00003 
00004 /* $Id: domain.h 1477 2007-05-09 19:45:54Z lennart $ */
00005 
00006 /***
00007   This file is part of avahi.
00008  
00009   avahi is free software; you can redistribute it and/or modify it
00010   under the terms of the GNU Lesser General Public License as
00011   published by the Free Software Foundation; either version 2.1 of the
00012   License, or (at your option) any later version.
00013  
00014   avahi is distributed in the hope that it will be useful, but WITHOUT
00015   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
00016   or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
00017   Public License for more details.
00018  
00019   You should have received a copy of the GNU Lesser General Public
00020   License along with avahi; if not, write to the Free Software
00021   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00022   USA.
00023 ***/
00024 
00027 #include <inttypes.h>
00028 #include <sys/types.h>
00029 
00030 #include <avahi-common/cdecl.h>
00031 
00032 AVAHI_C_DECL_BEGIN
00033 
00043 #define AVAHI_DOMAIN_NAME_MAX 1014
00044 
00046 #define AVAHI_LABEL_MAX 64
00047 
00052 char *avahi_normalize_name(const char *s, char *ret_s, size_t size);
00053 
00057 char *avahi_normalize_name_strdup(const char *s);
00058 
00064 int avahi_domain_equal(const char *a, const char *b);
00065 
00067 unsigned avahi_domain_hash(const char *name);
00068 
00075 char *avahi_unescape_label(const char **name, char *dest, size_t size);
00076 
00078 char *avahi_escape_label(const char* src, size_t src_length, char **ret_name, size_t *ret_size);
00079 
00087 int avahi_is_valid_service_type_generic(const char *t);
00088 
00092 int avahi_is_valid_service_type_strict(const char *t);
00093 
00096 int avahi_is_valid_service_subtype(const char *t);
00097 
00099 int avahi_is_valid_domain_name(const char *t);
00100 
00102 int avahi_is_valid_service_name(const char *t);
00103 
00105 int avahi_is_valid_host_name(const char *t);
00106 
00108 int avahi_is_valid_fqdn(const char *t);
00109 
00115 int avahi_service_name_join(char *p, size_t size, const char *name, const char *type, const char *domain);
00116 
00118 int avahi_service_name_split(const char *p, char *name, size_t name_size, char *type, size_t type_size, char *domain, size_t domain_size);
00119 
00125 const char *avahi_get_type_from_subtype(const char *t);
00126 
00129 AVAHI_C_DECL_END
00130 
00131 #endif


pedal_monitor
Author(s): Pedro Mendes
autogenerated on Fri Jun 6 2014 18:37:21