1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- #ifndef HEADER_INSERTION_H_
- #define HEADER_INSERTION_H_
- #include <stdint.h>
- #include <string>
- #include <iostream>
- #include "linux/msm_ipa.h"
- #include "ipa_test_module.h"
- #include "Constants.h"
- #include "Feature.h"
- using std::string;
- using std::cout;
- using std::endl;
- class HeaderInsertion: public Feature
- {
- public:
- bool AddHeader(struct ipa_ioc_add_hdr *pHeaderTable);
- bool addHeaderHpc(const string& name, uint8_t* header, const size_t headerLen, bool isPartial, enum ipa_client_type ipaClient);
- bool DeleteHeader(struct ipa_ioc_del_hdr *pHeaderTable);
- bool DeleteHeader(const string& name);
- bool GetHeaderHandle(struct ipa_ioc_get_hdr *pHeaderStruct);
- int GetHeaderHandle(const string& name);
- bool CopyHeader(struct ipa_ioc_copy_hdr *pCopyHeaderStruct);
-
- bool AddProcCtx(struct ipa_ioc_add_hdr_proc_ctx *procCtxTable);
- bool DeleteProcCtx(struct ipa_ioc_del_hdr_proc_ctx *procCtxTable);
- bool Commit();
- bool Reset();
- };
- #endif
|