|
libintrovirt v0.57.4
IntroVirt introspection library
|
#include <boost/program_options.hpp>#include <introvirt/introvirt.hh>#include <algorithm>#include <csignal>#include <functional>#include <iostream>
Classes | |
| class | EventHandler |
Enumerations | |
| enum | IVServiceCode { CSTRING_REVERSE = 0xF000 , WRITE_PROTECT = 0xF001 , PROTECT_PROCESS } |
Functions | |
| void | sig_handler (int signum) |
| void | parse_program_options (int argc, char **argv, po::options_description &desc, po::variables_map &vm) |
| int | main (int argc, char **argv) |
Variables | |
| unique_ptr< Domain > | domain |
| EventHandler | event_handler |
| enum IVServiceCode |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
The main entry point for this example.
| void parse_program_options | ( | int | argc, |
| char ** | argv, | ||
| po::options_description & | desc, | ||
| po::variables_map & | vm | ||
| ) |
This function parses our command line options using boost::program_options. Parsing command line options is not specific to IntroVirt, so this could be done in any way you like.
Parse command line options here
| void sig_handler | ( | int | signum | ) |
This signal handler is called when the user presses ctrl+c. It simply tells the domain to interrupt its polling loop so we can cleanly detach and exit.
| unique_ptr<Domain> domain |
| EventHandler event_handler |