Own fork of MbedSmartRestMain

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

operation/Operation.h

Committer:
xinlei
Date:
2015-04-22
Revision:
94:010b0f7a0a1a
Parent:
93:61d44636f020

File content as of revision 94:010b0f7a0a1a:

#ifndef OPERATIONSTORE_H
#define OPERATIONSTORE_H
#include "rtos.h"
#define POOL_SIZE 32

enum OperationState {
        OPERATION_PENDING,
        OPERATION_EXECUTING,
        OPERATION_SUCCESSFUL,
        OPERATION_FAILED
};

struct Operation {
    long identifier;
    OperationState state;
};

typedef Mail<Operation, POOL_SIZE> OperationPool;

const char* strOperationState(OperationState state);
extern const char *strPending;
extern const char *strExecuting;
extern const char *strSuccessful;
extern const char *strFailed;

#endif