nl:: Weave:: Support
摘要
类型定义符 |
|
---|---|
MessageNameFunct)(uint32_t inProfileId, uint8_t inMsgType)
|
typedefconst char *(*
回调函数的 Typedef,用于返回人类可读、以 NULL 结尾的 C 字符串,该字符串描述了与指定个人资料标识符关联的消息类型。 |
ProfileNameFunct)(uint32_t inProfileId)
|
typedefconst char *(*
回调函数的 Typedef,用于返回人类可读、以 NULL 结尾的 C 字符串,该字符串描述了具有指定个人资料标识符的个人资料。 |
StatusReportFormatStringFunct)(uint32_t inProfileId, uint16_t inStatusCode)
|
typedefconst char *(*
回调函数的 Typedef,用于返回人类可读、以 NULL 结尾的 C 字符串,该字符串描述了与指定个人资料标识符相关联的状态代码。 |
变量 |
|
---|---|
sProfileStringContextHead
|
注册表单链接列表头指针。
|
函数 |
|
---|---|
FindProfileStringContext(const ProfileStringContext & inContext)
|
根据与上下文关联的个人资料标识符,查找与指定上下文匹配的个人资料字符串。
|
FindProfileStringInfo(uint32_t inProfileId)
|
NL_DLL_EXPORT const ProfileStringInfo *
查找配置文件字符串支持与指定配置文件标识符相关联的回调(如果已注册)。
|
InsertProfileStringContext(ProfileStringContext & inOutContext)
|
bool
在注册表中插入指定的配置文件字符串支持上下文。
|
RegisterProfileStringInfo(ProfileStringContext & inOutContext)
|
NL_DLL_EXPORT WEAVE_ERROR
注册提供的配置文件字符串支持回调。
|
RemoveProfileStringContext(ProfileStringContext & inOutContext)
|
bool
从注册表中移除指定的配置文件字符串支持上下文。
|
UnregisterProfileStringInfo(ProfileStringContext & inOutContext)
|
NL_DLL_EXPORT WEAVE_ERROR
取消注册提供的配置文件字符串支持回调。
|
结构体 |
|
---|---|
nl:: |
用于注册和取消注册与指定个人资料标识符相关联的回调的上下文,用于返回与个人资料相关联的直观易懂的支持字符串。 |
nl:: |
与指定个人资料标识符相关联的回调,用于返回与个人资料相关联的直观易懂的支持字符串。 |
类型定义符
MessageNameFunct
const char *(* MessageNameFunct)(uint32_t inProfileId, uint8_t inMsgType)
回调函数的 Typedef,用于返回人类可读、以 NULL 结尾的 C 字符串,该字符串描述了与指定个人资料标识符关联的消息类型。
当需要使用人类可读的以 NULL 终止的 C 字符串来描述与指定配置文件标识符关联的消息类型时,系统将调用此回调(注册后)。
具体说明 | |||||
---|---|---|---|---|---|
参数 |
|
||||
返回值 |
如果找到匹配项,则为指向以 NULL 结束的 C 字符串的指针;否则,为 NULL。
|
ProfileNameFunct
const char *(* ProfileNameFunct)(uint32_t inProfileId)
回调函数的 Typedef,用于返回人类可读、以 NULL 结尾的 C 字符串,该字符串描述了具有指定个人资料标识符的个人资料。
当需要使用人类可读的以 NULL 终止的 C 字符串来描述使用指定配置文件标识符的个人资料时,系统将调用此回调(注册后)。
具体说明 | |||
---|---|---|---|
参数 |
|
||
返回值 |
如果找到匹配项,则为指向以 NULL 结束的 C 字符串的指针;否则,为 NULL。
|
StatusReportFormatStringFunct
const char *(* StatusReportFormatStringFunct)(uint32_t inProfileId, uint16_t inStatusCode)
回调函数的 Typedef,用于返回人类可读、以 NULL 结尾的 C 字符串,该字符串描述了与指定个人资料标识符相关联的状态代码。
此回调(注册后)在需要使用人类可读的以 NULL 终止的 C 字符串来描述与指定配置文件标识符相关联的状态代码时调用。
具体说明 | |||||
---|---|---|---|---|---|
参数 |
|
||||
返回值 |
如果找到匹配项,则为指向以 NULL 结束的 C 字符串的指针;否则,为 NULL。
|
变量
函数
FindProfileStringContext
ProfileStringContext * FindProfileStringContext( const ProfileStringContext & inContext )
根据与上下文关联的个人资料标识符,查找与指定上下文匹配的个人资料字符串。
此函数根据与上下文关联的个人资料标识符,查找与指定上下文匹配的个人资料字符串支持上下文。
具体说明 | |||
---|---|---|---|
参数 |
|
||
返回值 |
指向配置文件字符串支持上下文的只读指针(如果找到);否则为 NULL。
|
FindProfileStringInfo
NL_DLL_EXPORT const ProfileStringInfo * FindProfileStringInfo( uint32_t inProfileId )
查找配置文件字符串支持与指定配置文件标识符相关联的回调(如果已注册)。
具体说明 | |||
---|---|---|---|
参数 |
|
||
返回值 |
指向配置文件字符串的只读指针支持回调(如果找到);否则为 NULL。
|
RegisterProfielStringInfo
UnregisterProfielStringInfo
InsertProfileStringContext
bool InsertProfileStringContext( ProfileStringContext & inOutContext )
在注册表中插入指定的配置文件字符串支持上下文。
如果指定的配置文件字符串支持上下文尚不存在,此函数会根据配置文件标识符按升序排列,并将上下文插入到注册表中。
具体说明 | |||
---|---|---|---|
参数 |
|
||
返回值 |
如果插入了上下文,则为 true;否则为 false。
|
RegisterProfileStringInfo
NL_DLL_EXPORT WEAVE_ERROR RegisterProfileStringInfo( ProfileStringContext & inOutContext )
注册提供的配置文件字符串支持回调。
此函数会注册并提供提供的配置文件字符串支持回调。
具体说明 | |||||
---|---|---|---|---|---|
参数 |
|
||||
返回值 |
|
FindStringProfileInfo
UnregisterProfielStringInfo
RemoveProfileStringContext
bool RemoveProfileStringContext( ProfileStringContext & inOutContext )
从注册表中移除指定的配置文件字符串支持上下文。
此函数根据配置文件标识符从注册表(如果存在)中移除指定的配置文件字符串支持上下文。
具体说明 | |||
---|---|---|---|
参数 |
|
||
返回值 |
如果移除了上下文,则为 true;否则为 false。
|
UnregisterProfileStringInfo
NL_DLL_EXPORT WEAVE_ERROR UnregisterProfileStringInfo( ProfileStringContext & inOutContext )
取消注册提供的配置文件字符串支持回调。
此函数将取消注册,并使提供的配置文件字符串支持回调不可用。
具体说明 | |||||
---|---|---|---|---|---|
参数 |
|
||||
返回值 |
|
FindStringProfileInfo
RegisterProfielStringInfo