rvmegacoauth.h
来自「h.248协议源码」· C头文件 代码 · 共 75 行
H
75 行
/******************************************************************************
Filename: rvmegacoauth.h
Description: megaco authentication header class
*******************************************************************************
Copyright (c) 2000 RADVision Inc.
*******************************************************************************
NOTICE:
This document contains information that is proprietary to RADVision Inc.
No part of this publication may be reproduced in any form whatsoever without
written prior approval by RADVision Inc.
RADVision Inc. reserves the right to revise this publication and make changes
without obligation to notify any person of such revisions or changes.
******************************************************************************/
#ifndef RV_MEGACOAUTH_H
#define RV_MEGACOAUTH_H
#include "rvstring.h"
#include "rvstrstream.h"
#if defined(__cplusplus)
extern "C" {
#endif
/*
{type:
{name: RvMegacoAuthenticationHeader}
{description: {p: The authentication header.}}
{methods:
{method: RvMegacoAuthenticationHeader *rvMegacoAuthenticationHeaderConstruct(RvMegacoAuthenticationHeader *x, unsigned int index, unsigned int seqNum, const char *data);}
{method: RvMegacoAuthenticationHeader *rvMegacoAuthenticationHeaderConstructA(RvMegacoAuthenticationHeader *x, unsigned int index, unsigned int seqNum, const char *data, RvAlloc *alloc);}
{method: RvMegacoAuthenticationHeader *rvMegacoAuthenticationHeaderConstructString(RvMegacoAuthenticationHeader *x, unsigned int index, unsigned int seqNum, const RvString *data, RvAlloc *alloc);}
{method: RvMegacoAuthenticationHeader *rvMegacoAuthenticationHeaderConstructParse(RvMegacoAuthenticationHeader *x, const char **text, RvAlloc *alloc);}
{method: RvMegacoAuthenticationHeader *rvMegacoAuthenticationHeaderConstructCopy(RvMegacoAuthenticationHeader *d, const RvMegacoAuthenticationHeader *s, RvAlloc *alloc);}
{method: void rvMegacoAuthenticationHeaderDestruct(RvMegacoAuthenticationHeader *x);}
{method: RvMegacoAuthenticationHeader *rvMegacoAuthenticationHeaderCopy(RvMegacoAuthenticationHeader *d, const RvMegacoAuthenticationHeader *s);}
{method: RvBool rvMegacoAuthenticationHeaderEqual(const RvMegacoAuthenticationHeader *a, const RvMegacoAuthenticationHeader *b);}
{method: unsigned int rvMegacoAuthenticationHeaderGetSecurityIndex(const RvMegacoAuthenticationHeader *x);}
{method: unsigned int rvMegacoAuthenticationHeaderGetSequenceNumber(const RvMegacoAuthenticationHeader *x);}
{method: const char *rvMegacoAuthenticationHeaderGetData(const RvMegacoAuthenticationHeader *x);}
{method: size_t rvMegacoAuthenticationHeaderGetDataLength(const RvMegacoAuthenticationHeader *x);}
{method: void rvMegacoAuthenticationHeaderEncode(const RvMegacoAuthenticationHeader *x, RvStrStream *os, RvBool encodeCompact);}
}
}
*/
typedef struct
{
unsigned int securityIndex;
unsigned int sequenceNum;
RvString authData;
} RvMegacoAuthenticationHeader;
RvMegacoAuthenticationHeader *rvMegacoAuthenticationHeaderConstruct(RvMegacoAuthenticationHeader *x, unsigned int index, unsigned int seqNum, const char *data);
RvMegacoAuthenticationHeader *rvMegacoAuthenticationHeaderConstructA(RvMegacoAuthenticationHeader *x, unsigned int index, unsigned int seqNum, const char *data, RvAlloc *alloc);
RvMegacoAuthenticationHeader *rvMegacoAuthenticationHeaderConstructString(RvMegacoAuthenticationHeader *x, unsigned int index, unsigned int seqNum, const RvString *data, RvAlloc *alloc);
RvMegacoAuthenticationHeader *rvMegacoAuthenticationHeaderConstructParse(RvMegacoAuthenticationHeader *x, const char **text, RvAlloc *alloc);
RvMegacoAuthenticationHeader *rvMegacoAuthenticationHeaderConstructCopy(RvMegacoAuthenticationHeader *d, const RvMegacoAuthenticationHeader *s, RvAlloc *alloc);
void rvMegacoAuthenticationHeaderDestruct(RvMegacoAuthenticationHeader *x);
RvMegacoAuthenticationHeader *rvMegacoAuthenticationHeaderCopy(RvMegacoAuthenticationHeader *d, const RvMegacoAuthenticationHeader *s);
RvBool rvMegacoAuthenticationHeaderEqual(const RvMegacoAuthenticationHeader *a, const RvMegacoAuthenticationHeader *b);
unsigned int rvMegacoAuthenticationHeaderGetSecurityIndex(const RvMegacoAuthenticationHeader *x);
unsigned int rvMegacoAuthenticationHeaderGetSequenceNumber(const RvMegacoAuthenticationHeader *x);
const char *rvMegacoAuthenticationHeaderGetData(const RvMegacoAuthenticationHeader *x);
size_t rvMegacoAuthenticationHeaderGetDataLength(const RvMegacoAuthenticationHeader *x);
void rvMegacoAuthenticationHeaderEncode(const RvMegacoAuthenticationHeader *x, RvStrStream *os, RvBool encodeCompact);
#if defined(__cplusplus)
}
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?