(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.9, Mon Jun 8 08:31:35 2009 UTC (15 years ago) by s.kodali
Branch: MAIN
CVS Tags: TASK-PEP362_RestfulService-merged_out_from_trunk, TASK-PEP348_SCMO-merged_out_from_trunk, TASK-PEP317_pullop-merged_out_from_trunk, TASK-PEP317_pullop-merged_in_to_trunk, HEAD
Changes since 1.8: +0 -0 lines
FILE REMOVED
BUG#: 8508
TITLE: remove unused file src/slp/slp_agent/lslp-perl-lib.h

//%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor licenses this file to you under the OpenPegasus Open
// Source License; you may not use this file except in compliance with the
// License.
//
// 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