49 lines
2.2 KiB
C++
Raw Blame History

//----------------------------------------------------------------------------
//
// Copyright (C) 2008 Intel Corporation
//
// File: EventManagerFlow.h
//
// Contents: API code for Intel(R) Active Management Technology
// (Intel<65> AMT) EventManager Sample.
//
// Notes: This file contains the EventManagerFlow methods .
//
//----------------------------------------------------------------------------
#ifndef EVENTMANAGER_FLOW_H
#define EVENTMANAGER_FLOW_H
#include <string>
#include "CimWsman.h"
#include "AMT_PETFilterSetting.h"
#include "AMT_EventManagerService.h"
using namespace std;
using namespace Intel::WSManagement;
using namespace Intel::Manageability::Cim::Typed;
using namespace Intel::Manageability::Exceptions;
static const unsigned char DEFAULT_DEVICE_ADDRESS = 0xff; // DeviceAddressMatchAll
static const unsigned char DEFAULT_ENTITY = 0; // EntityMatchAll
static const unsigned char DEFAULT_ENTITY_INSTANCE = 0; // EntityInstanceMatchAll
static const unsigned char DEFAULT_EVENT_OFFSET = 0xf; // EventOffsetMatchAll
static const unsigned char DEFAULT_EVENT_SENSOR_TYPE = 0xff; // EventSensorTypeMatchAll
static const unsigned char DEFAULT_EVENT_SOURCE_TYPE = 0xff; // EventSourceTypeMatchAll
static const unsigned char DEFAULT_EVENT_TYPE = 0xff; // EventTypeMatchAll
static const unsigned char DEFAULT_SENSOR_NUMBER = 0xff; // SensorNumberMatchAll
static const unsigned char DEFAULT_EVENT_SEVERITY = 0; // Unspecified
static const unsigned char DEFAULT_POLICY_ID = 100; // Unspecified
static const bool DEFAULT_ENABLE_FILTER = true;
static const bool DEFAULT_LOG_EVENT = true;
static const bool DEFAULT_OEM_FILTER = false;
static const bool DEFAULT_SEND_ALERT = false;
static const string DEFAULT_ELEMENT_NAME = "Intel(r) AMT PET Filter 1";
static const string DEFAULT_INSTACE_ID = "1";
static const int MAX_FILTERS = 17;
void EnumerateEventFilter(ICimWsmanClient *wsmanClient, int &numOfFilters, bool verbose);
void CreateEventFilter(AMT_PETFilterSetting & petFilterObj, bool verbose);
void DeleteEventFilter(AMT_PETFilterSetting & petFilterObj, bool verbose);
#endif //EVENTMANAGER_FLOW_H