defs.h
Go to the documentation of this file.
00001 #ifndef foodefshfoo
00002 #define foodefshfoo
00003 
00004 /* $Id: defs.h 1511 2007-08-12 15:41:45Z 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 <avahi-common/cdecl.h>
00028 
00214 AVAHI_C_DECL_BEGIN
00215 
00219 typedef enum {
00220     AVAHI_SERVER_INVALID,          
00221     AVAHI_SERVER_REGISTERING,      
00222     AVAHI_SERVER_RUNNING,          
00223     AVAHI_SERVER_COLLISION,        
00224     AVAHI_SERVER_FAILURE           
00225 } AvahiServerState;
00226 
00228 typedef enum {
00229     AVAHI_ENTRY_GROUP_UNCOMMITED,    
00230     AVAHI_ENTRY_GROUP_REGISTERING,   
00231     AVAHI_ENTRY_GROUP_ESTABLISHED,   
00232     AVAHI_ENTRY_GROUP_COLLISION,     
00233     AVAHI_ENTRY_GROUP_FAILURE        
00234 } AvahiEntryGroupState;
00235 
00241 typedef enum {
00242     AVAHI_PUBLISH_UNIQUE = 1,           
00243     AVAHI_PUBLISH_NO_PROBE = 2,         
00244     AVAHI_PUBLISH_NO_ANNOUNCE = 4,      
00245     AVAHI_PUBLISH_ALLOW_MULTIPLE = 8,   
00247     AVAHI_PUBLISH_NO_REVERSE = 16,      
00248     AVAHI_PUBLISH_NO_COOKIE = 32,       
00250     AVAHI_PUBLISH_UPDATE = 64,          
00252     AVAHI_PUBLISH_USE_WIDE_AREA = 128,  
00253     AVAHI_PUBLISH_USE_MULTICAST = 256   
00255 } AvahiPublishFlags;
00256 
00258 typedef enum {
00260     AVAHI_LOOKUP_USE_WIDE_AREA = 1,    
00261     AVAHI_LOOKUP_USE_MULTICAST = 2,    
00263     AVAHI_LOOKUP_NO_TXT = 4,           
00264     AVAHI_LOOKUP_NO_ADDRESS = 8        
00265 } AvahiLookupFlags;
00266 
00268 typedef enum {
00269     AVAHI_LOOKUP_RESULT_CACHED = 1,         
00270     AVAHI_LOOKUP_RESULT_WIDE_AREA = 2,      
00271     AVAHI_LOOKUP_RESULT_MULTICAST = 4,      
00272     AVAHI_LOOKUP_RESULT_LOCAL = 8,          
00273     AVAHI_LOOKUP_RESULT_OUR_OWN = 16,       
00274     AVAHI_LOOKUP_RESULT_STATIC = 32         
00275 } AvahiLookupResultFlags;
00276 
00282 typedef enum {
00283     AVAHI_BROWSER_NEW,               
00284     AVAHI_BROWSER_REMOVE,            
00285     AVAHI_BROWSER_CACHE_EXHAUSTED,   
00286     AVAHI_BROWSER_ALL_FOR_NOW,       
00287     AVAHI_BROWSER_FAILURE            
00288 } AvahiBrowserEvent;
00289 
00291 typedef enum {
00292     AVAHI_RESOLVER_FOUND,          
00293     AVAHI_RESOLVER_FAILURE         
00294 } AvahiResolverEvent;
00295 
00301 typedef enum {
00302     AVAHI_DOMAIN_BROWSER_BROWSE,            
00303     AVAHI_DOMAIN_BROWSER_BROWSE_DEFAULT,    
00304     AVAHI_DOMAIN_BROWSER_REGISTER,          
00305     AVAHI_DOMAIN_BROWSER_REGISTER_DEFAULT,  
00306     AVAHI_DOMAIN_BROWSER_BROWSE_LEGACY,     
00307     AVAHI_DOMAIN_BROWSER_MAX
00308 } AvahiDomainBrowserType;
00309 
00317 #define AVAHI_SERVICE_COOKIE "org.freedesktop.Avahi.cookie"
00318 
00320 #define AVAHI_SERVICE_COOKIE_INVALID (0)
00321 
00326 enum {
00327     AVAHI_DNS_TYPE_A = 0x01,
00328     AVAHI_DNS_TYPE_NS = 0x02,
00329     AVAHI_DNS_TYPE_CNAME = 0x05,
00330     AVAHI_DNS_TYPE_SOA = 0x06,
00331     AVAHI_DNS_TYPE_PTR = 0x0C,
00332     AVAHI_DNS_TYPE_HINFO = 0x0D,
00333     AVAHI_DNS_TYPE_MX = 0x0F,
00334     AVAHI_DNS_TYPE_TXT = 0x10,
00335     AVAHI_DNS_TYPE_AAAA = 0x1C,
00336     AVAHI_DNS_TYPE_SRV = 0x21
00337 };
00338 
00340 enum {
00341     AVAHI_DNS_CLASS_IN = 0x01          
00342 };
00343 
00347 #define AVAHI_DEFAULT_TTL_HOST_NAME (120)
00348 
00350 #define AVAHI_DEFAULT_TTL (75*60)
00351 
00352 AVAHI_C_DECL_END
00353 
00354 #endif


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