该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
typedef void (*NOTIFICATIONCALLBACK)();
typedef struct
{
const NotifyType mNotificationtype;
union
{
struct
{
const TaskType mTaskID; /*Application TaskID for monitor this MSG*/
const EventMaskType mEventMask; /*Monitor the MSG's Task Event*/
} mNotifyEvent;
const TaskType mTaskID; /*Monitor MSG's Task*/
const NOTIFICATIONCALLBACK mpNotifyCallback; /*Monitor MSG's Callback function*/
}mNotificationInstance;
}Notification;
有3种通知类型,一个是Event,一个是回调,一个是Task。然后生成数组。
COM_Notification [2] =
{
{
COM_NOTIFY_CALLBACK, //mNotificationtype
msgnotifycallback, //union
},
{
COM_NOTIFY_CALLBACK, //mNotificationtype
msgnotifycallback, //union
},
{
COM_NOTIFY_NO,
0
}
},
老是报错,请大家给看看