Rebase dev 2.0
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define MESSAGE_MAGIC 0x12345678
|
||||
#include "stellar/session.h"
|
||||
#include "stellar/module_manager.h"
|
||||
|
||||
#define MAX_APP_ID_NUM 8
|
||||
#define APP_ID_MESSAGE_TOPIC "TOPIC_APP_ID"
|
||||
|
||||
enum APP_IDENTIFY_ORIGIN
|
||||
enum APPID_ORIGIN
|
||||
{
|
||||
ORIGIN_PROTO_IDENTIFY=0,
|
||||
ORIGIN_LPI_PLUS=0,
|
||||
ORIGIN_APP_SKETCH_USER_DEFINE,
|
||||
ORIGIN_PROTO_ENGINE,
|
||||
ORIGIN_APP_SKETCH_BUILT_IN,
|
||||
@@ -20,12 +23,10 @@ enum APP_IDENTIFY_ORIGIN
|
||||
ORIGIN_MAX
|
||||
};
|
||||
|
||||
struct app_id_message
|
||||
{
|
||||
int magic;
|
||||
enum APP_IDENTIFY_ORIGIN origin;
|
||||
uint32_t app_id_num;
|
||||
int32_t app_id[MAX_APP_ID_NUM];
|
||||
uint32_t surrogate_id[MAX_APP_ID_NUM];
|
||||
uint32_t packet_sequence[MAX_APP_ID_NUM];
|
||||
};
|
||||
typedef void on_appid_callback(struct session *sess, enum APPID_ORIGIN origin, int appid[], size_t appid_num, void *args);
|
||||
int stellar_appid_create_topic(struct stellar_module_manager *mod_mgr);
|
||||
int stellar_appid_subscribe(struct stellar_module_manager *mod_mgr, on_appid_callback *cb, void *args);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user