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

File: [Pegasus] / pegasus / src / slp / slp_agent / Attic / lslp-perl-lib.h (download)
Revision: 1.6, Thu Jul 26 06:51:40 2007 UTC (16 years, 11 months ago) by venkat.puvvada
Branch: MAIN
CVS Tags: TASK_PEP328_SOLARIS_NEVADA_PORT, TASK-PEP328_SOLARIS_NEVADA_PORT_v2-root, TASK-PEP328_SOLARIS_NEVADA_PORT_v2-branch, TASK-PEP328_SOLARIS_NEVADA_PORT-root, TASK-PEP328_SOLARIS_NEVADA_PORT-branch, TASK-PEP328_SOLARIS_IX86_CC_PORT-root, TASK-PEP328_SOLARIS_IX86_CC_PORT-branch-v2, TASK-PEP328_SOLARIS_IX86_CC_PORT-branch, TASK-PEP311_WSMan-root, TASK-PEP311_WSMan-branch, TASK-PEP305_VXWORKS-root, TASK-PEP305_VXWORKS-branch-pre-solaris-port, TASK-PEP305_VXWORKS-branch-post-solaris-port, TASK-PEP305_VXWORKS-branch-beta2, TASK-PEP305_VXWORKS-branch, TASK-PEP305_VXWORKS-2008-10-23, TASK-BUG7146_SqlRepositoryPrototype-root, TASK-BUG7146_SqlRepositoryPrototype-merged_out_to_branch, TASK-BUG7146_SqlRepositoryPrototype-merged_out_from_trunk, TASK-BUG7146_SqlRepositoryPrototype-merged_in_to_trunk, TASK-BUG7146_SqlRepositoryPrototype-merged_in_from_branch, TASK-BUG7146_SqlRepositoryPrototype-branch, RELEASE_2_8_2-RC1, RELEASE_2_8_2, RELEASE_2_8_1-RC1, RELEASE_2_8_1, RELEASE_2_8_0_BETA, RELEASE_2_8_0-RC2, RELEASE_2_8_0-RC1, RELEASE_2_8_0-FC, RELEASE_2_8_0, RELEASE_2_8-root, RELEASE_2_8-branch, RELEASE_2_7_3-RC1, RELEASE_2_7_3, RELEASE_2_7_2-RC1, RELEASE_2_7_2, RELEASE_2_7_1-RC1, RELEASE_2_7_1, RELEASE_2_7_0-RC1, RELEASE_2_7_0-BETA, RELEASE_2_7_0, RELEASE_2_7-root, RELEASE_2_7-branch
Changes since 1.5: +90 -82 lines
BUG#: 6650
TITLE: chksrc cleanup for src/slp directory

//%2006////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
// IBM Corp.; EMC Corporation, The Open Group.
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
// EMC Corporation; VERITAS Software Corporation; The Open Group.
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
// EMC Corporation; Symantec Corporation; The Open Group.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//==============================================================================
//
//%/////////////////////////////////////////////////////////////////////////////

typedef int BOOL;
typedef char int8;
typedef unsigned char uint8;
typedef short int16;
typedef unsigned short uint16;
typedef int int32;
typedef unsigned int uint32;


typedef struct lslp_lib_daadv
{
    struct lslp_lib_daadv *next;
    struct lslp_lib_daadv *prev;
    BOOL isHead;
    int type;
    int8 function;
    uint16 err;
    uint32 stateless_boot;
    int8 *url;
    int8 *scope;
    int8 *attr;
    int8 *spi;
    int8 auth_blocks;
    int8 *auth;
} LSLP_LIB_DAADVERT;

typedef struct lslp_lib_srvrply
{
    struct lslp_lib_srvrply *next;
    struct lslp_lib_srvrply *prev;
    BOOL isHead;
    int type;
    int8 function;
    uint16 err;
    uint16 lifetime;
    int8 *url;
    int8 auth_blocks;
    int8 *auth;
} LSLP_LIB_SRVRPLY;

typedef struct lslp_lib_list
{
    struct lslp_lib_list *next;
    struct lslp_lib_list *prev;
    BOOL isHead;
    int type;
} LSLP_LIB_LIST;


BOOL lslp_lib_set_convergence(const int8 *id, int8 convergence);
BOOL lslp_lib_set_port(const int8 *id, int16 target_port);
BOOL lslp_lib_set_target_addr(const int8 *id, const int8 *target_addr);
BOOL lslp_lib_set_local_interface(const int8 *id, const int8 *);
BOOL lslp_lib_set_delimitor(const int8 *id, const int8 delimitor);
BOOL lslp_lib_set_timout_retry(
    const int8 *id,
    uint32 t_sec,
    uint32 t_usec,
    int8 retries,
    uint8 ttl);
BOOL lslp_lib_set_spi(const int8 *id, const int8 *spi);
BOOL lslp_lib_init(
    const int8 *id,
    const int8 *target_addr,
    const int8 *local_addr,
    int16 target_port,
    const int8 *spi);
void lslp_lib_deinit(const int8 *id);
LSLP_LIB_LIST *lslp_lib_converge_srv_req(
    const int8 *id,
    const int8 *type,
    const int8 *predicate,
    const int8 *scopes) ;
LSLP_LIB_LIST  *lslp_lib_srv_req(
    const int8 *id,
    const int8 *type,
    const int8 *predicate,
    const int8 *scopes);
BOOL lslp_lib_srv_reg(
    int8 *id,
    int8 *url,
    int8 *attributes,
    int8 *service_type,
    int8 *scopes,
    int16 lifetime);

void lslp_lib_free_list(LSLP_LIB_LIST *list);

void lslp_lib_srv_reg_all(
    int8 *id,
    int8 *url,
    int8 *attributes,
    int8 *service_type,
    int8 *scopes,
    int16 lifetime,
    int *succeeded,
    int *failed);

int8 *lslp_lib_get_host_name(void);

BOOL lslp_lib_get_addr_from_url(const int8 *url, struct sockaddr_in *addr);
int8 *lslp_lib_get_addr_string_from_url(const int8 *url);



No CVS admin address has been configured
Powered by
ViewCVS 0.9.2