mirror of
https://github.com/intel/linux-sgx
synced 2026-06-08 14:49:32 +00:00
d10cabebb5
Added new APIs in sgx_uae_service.h and sgx_ukey_exchange.h to support ECDSA quote based remote attestation. The set of legacy APIs supports EPID only and the set of new APIs supports ECDSA quotes. Enhanced Edger8r with structure deep-copy feature. Fixed bugs. Signed-off-by: Li, Xun <xun.li@intel.com>
36 lines
931 B
C++
36 lines
931 B
C++
//! [GetBundleContext]
|
|
#include "cppmicroservices/Bundle.h"
|
|
#include "cppmicroservices/BundleActivator.h"
|
|
#include "cppmicroservices/BundleContext.h"
|
|
#include "cppmicroservices/GetBundleContext.h"
|
|
|
|
#include <iostream>
|
|
|
|
using namespace cppmicroservices;
|
|
|
|
void RetrieveBundleContext()
|
|
{
|
|
auto context = GetBundleContext();
|
|
auto bundle = context.GetBundle();
|
|
std::cout << "Bundle name: " << bundle.GetSymbolicName()
|
|
<< " [id: " << bundle.GetBundleId() << "]\n";
|
|
}
|
|
//! [GetBundleContext]
|
|
|
|
//! [InitializeBundle]
|
|
#include "cppmicroservices/BundleInitialization.h"
|
|
|
|
CPPMICROSERVICES_INITIALIZE_BUNDLE
|
|
//! [InitializeBundle]
|
|
|
|
int main(int /*argc*/, char* /*argv*/ [])
|
|
{
|
|
std::cout
|
|
<< "This snippet is not meant to be executed.\n"
|
|
"It does not provide a complete working example.\n"
|
|
"See "
|
|
"http://docs.cppmicroservices.org/en/stable/doc/src/getting_started.html"
|
|
<< std::endl;
|
|
return 0;
|
|
}
|