New upstream version 8.1.0
This commit is contained in:
45
client_module/source/common/net/sock/NicAddressList.h
Normal file
45
client_module/source/common/net/sock/NicAddressList.h
Normal file
@@ -0,0 +1,45 @@
|
||||
#ifndef NICADDRESSLIST_H_
|
||||
#define NICADDRESSLIST_H_
|
||||
|
||||
#include <common/toolkit/list/PointerList.h>
|
||||
#include <common/toolkit/list/PointerListIter.h>
|
||||
#include <common/Common.h>
|
||||
#include "NicAddress.h"
|
||||
|
||||
struct NicAddressList;
|
||||
typedef struct NicAddressList NicAddressList;
|
||||
|
||||
static inline void NicAddressList_init(NicAddressList* this);
|
||||
static inline void NicAddressList_uninit(NicAddressList* this);
|
||||
static inline void NicAddressList_append(NicAddressList* this, NicAddress* nicAddress);
|
||||
static inline size_t NicAddressList_length(NicAddressList* this);
|
||||
|
||||
extern bool NicAddressList_equals(NicAddressList* this, NicAddressList* other);
|
||||
|
||||
struct NicAddressList
|
||||
{
|
||||
struct PointerList pointerList;
|
||||
};
|
||||
|
||||
|
||||
void NicAddressList_init(NicAddressList* this)
|
||||
{
|
||||
PointerList_init( (PointerList*)this);
|
||||
}
|
||||
|
||||
void NicAddressList_uninit(NicAddressList* this)
|
||||
{
|
||||
PointerList_uninit( (PointerList*)this);
|
||||
}
|
||||
|
||||
void NicAddressList_append(NicAddressList* this, NicAddress* nicAddress)
|
||||
{
|
||||
PointerList_append( (PointerList*)this, nicAddress);
|
||||
}
|
||||
|
||||
size_t NicAddressList_length(NicAddressList* this)
|
||||
{
|
||||
return PointerList_length( (PointerList*)this);
|
||||
}
|
||||
|
||||
#endif /*NICADDRESSLIST_H_*/
|
||||
Reference in New Issue
Block a user