(file) Return to lslp-perl-lib.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / slp

  1 mday  1.1 //%/////////////////////////////////////////////////////////////////////////////
  2           //
  3 kumpf 1.4 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
  4           // The Open Group, Tivoli Systems
  5 mday  1.1 //
  6 mike  1.3 // Permission is hereby granted, free of charge, to any person obtaining a copy
  7 kumpf 1.4 // of this software and associated documentation files (the "Software"), to
  8           // deal in the Software without restriction, including without limitation the
  9           // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 10 mike  1.3 // sell copies of the Software, and to permit persons to whom the Software is
 11           // furnished to do so, subject to the following conditions:
 12           // 
 13 kumpf 1.4 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 14 mike  1.3 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 15           // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 16 kumpf 1.4 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 17           // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 18           // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 19 mike  1.3 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 20           // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 21 mday  1.1 //
 22           //==============================================================================
 23           //
 24           // Author: Mike Day (mdday@us.ibm.com)
 25           //
 26           //%/////////////////////////////////////////////////////////////////////////////
 27           
 28           
 29 mday  1.2 
 30 mday  1.1 
 31             typedef int BOOL ;
 32             typedef char int8;
 33             typedef unsigned char uint8 ;
 34             typedef short int16 ;
 35             typedef unsigned short uint16 ;
 36             typedef int int32 ;
 37             typedef unsigned int uint32 ;
 38           
 39           
 40           typedef struct lslp_lib_daadv {
 41             struct lslp_lib_daadv *next;
 42             struct lslp_lib_daadv *prev;
 43             BOOL isHead ;
 44             int type;
 45             int8 function;
 46             uint16 err;
 47             uint32 stateless_boot;
 48             int8 *url;
 49             int8 *scope;
 50             int8 *attr;
 51 mday  1.1   int8 *spi;
 52             int8 auth_blocks;
 53             int8 *auth;
 54           } LSLP_LIB_DAADVERT;
 55           
 56           typedef struct lslp_lib_srvrply {
 57             struct lslp_lib_srvrply *next;
 58             struct lslp_lib_srvrply *prev;
 59             BOOL isHead;
 60             int type;
 61             int8 function;
 62             uint16 err;
 63             uint16 lifetime;
 64             int8 *url;
 65             int8 auth_blocks;
 66             int8 *auth;
 67           } LSLP_LIB_SRVRPLY;
 68           
 69           typedef struct lslp_lib_list {
 70             struct lslp_lib_list *next;
 71             struct lslp_lib_list *prev;
 72 mday  1.1   BOOL isHead;
 73             int type;
 74           } LSLP_LIB_LIST;
 75           
 76           
 77           BOOL lslp_lib_set_convergence(const int8 *id, int8 convergence) ;
 78           BOOL lslp_lib_set_port(const int8 *id, int16 target_port) ;
 79           BOOL lslp_lib_set_target_addr(const int8 *id, const int8 *target_addr);
 80           BOOL lslp_lib_set_local_interface(const int8 *id, const int8 *);
 81           BOOL lslp_lib_set_delimitor(const int8 *id, const int8 delimitor);
 82           BOOL lslp_lib_set_timout_retry(const int8 *id, uint32 t_sec, uint32 t_usec, int8 retries, uint8 ttl);
 83           BOOL lslp_lib_set_spi(const int8 *id, const int8 *spi) ;
 84           BOOL lslp_lib_init(const int8 *id, 
 85           		   const int8 *target_addr, 
 86           		   const int8 *local_addr, 
 87           		   int16 target_port, 
 88           		   const int8 *spi);
 89           void lslp_lib_deinit(const int8 *id);
 90           LSLP_LIB_LIST *lslp_lib_converge_srv_req(const int8 *id, 
 91           					 const int8 *type, 
 92           					 const int8 *predicate, 
 93 mday  1.1 					 const int8 *scopes) ;
 94           LSLP_LIB_LIST  *lslp_lib_srv_req(const int8 *id,
 95           				 const int8 *type, 
 96           				 const int8 *predicate, 
 97           				 const int8 *scopes);
 98           BOOL lslp_lib_srv_reg(int8 *id, 
 99           		      int8 *url,
100           		      int8 *attributes,
101           		      int8 *service_type,
102           		      int8 *scopes,
103           		      int16 lifetime);
104           
105           void lslp_lib_free_list(LSLP_LIB_LIST *list) ;
106           
107           void lslp_lib_srv_reg_all(int8 *id, 
108           			  int8 *url,
109           			  int8 *attributes,
110           			  int8 *service_type,
111           			  int8 *scopes,
112           			  int16 lifetime,
113           			  int *succeeded,
114 mday  1.1 			  int *failed) ;
115           
116           int8 *lslp_lib_get_host_name(void) ;
117           
118           BOOL lslp_lib_get_addr_from_url(const int8 *url, struct sockaddr_in *addr ) ;
119           int8 *lslp_lib_get_addr_string_from_url(const int8 *url) ;
120           
121 mday  1.2 

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2