octsdr-2g-wireshark/software/include/octvc1/main/octvc1_main_evt.h

117 lines
3.8 KiB
C

/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
File: OCTVC1_MAIN_EVT.h
Copyright (c) 2016 Octasic Inc. All rights reserved.
Description: Contains the event definition of the MAIN API.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program;if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Release: OCTSDR Software Development Kit OCTSDR_GSM-02.05.00-B780 (2016/01/14)
$Octasic_Revision: $
\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
#ifndef __OCTVC1_MAIN_EVT_H__
#define __OCTVC1_MAIN_EVT_H__
/***************************** INCLUDE FILES *******************************/
#include "octvc1_main_api.h"
/************************ COMMON DEFINITIONS *******************************/
/*-------------------------------------------------------------------------------------
tOCTVC1_MAIN_EVT_PHY_MASK : Phy Events.
-------------------------------------------------------------------------------------*/
#define tOCTVC1_MAIN_EVT_PHY_MASK tOCT_UINT32
#define cOCTVC1_MAIN_EVT_PHY_MASK_UP ((tOCT_UINT32)(1<<0) )
#define cOCTVC1_MAIN_EVT_PHY_MASK_DOWN ((tOCT_UINT32)(1<<1) )
/***************************** NOTIFICATIONS **********************************/
/*-------------------------------------------------------------------------------------
tOCTVC1_MAIN_MSG_PROCESS_CPU_USAGE_REPORT_EVT
Members:
Header
hProcess
ulProcessImageType
Process Type identifier. Value INVALID means no process running on this core.
ulProcessCpuUsagePercent
-------------------------------------------------------------------------------------*/
typedef struct
{
tOCTVC1_EVENT_HEADER Header;
tOCT_UINT32 hProcess;
tOCTVC1_PROCESS_TYPE_ENUM ulProcessImageType;
tOCT_UINT32 ulProcessCpuUsagePercent;
} tOCTVC1_MAIN_MSG_PROCESS_CPU_USAGE_REPORT_EVT;
/*-------------------------------------------------------------------------------------
tOCTVC1_MAIN_MSG_PROCESS_DUMP_EVT
Members:
Header
hProcess
-------------------------------------------------------------------------------------*/
typedef struct
{
tOCTVC1_EVENT_HEADER Header;
tOCT_UINT32 hProcess;
} tOCTVC1_MAIN_MSG_PROCESS_DUMP_EVT;
/*-------------------------------------------------------------------------------------
tOCTVC1_MAIN_MSG_API_SYSTEM_SESSION_HEARTBEAT_EVT
Members:
Header
ulSessionIndex
Session index
-------------------------------------------------------------------------------------*/
typedef struct
{
tOCTVC1_EVENT_HEADER Header;
tOCTVC1_INDEX ulSessionIndex;
} tOCTVC1_MAIN_MSG_API_SYSTEM_SESSION_HEARTBEAT_EVT;
/*-------------------------------------------------------------------------------------
tOCTVC1_MAIN_MSG_APPLICATION_STATE_CHANGE_EVT
Members:
Header
ulState
Application state
szAppName
Application name
-------------------------------------------------------------------------------------*/
typedef struct
{
tOCTVC1_EVENT_HEADER Header;
tOCTVC1_MAIN_APPLICATION_STATE_ENUM ulState;
tOCT_INT8 szAppName[(cOCTVC1_MAIN_APPLICATION_MAX_NAME_LENGTH+1)];
} tOCTVC1_MAIN_MSG_APPLICATION_STATE_CHANGE_EVT;
#endif /* __OCTVC1_MAIN_EVT_H__ */