Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string>
- #include <vector>
- #include "notify_time.h"
- #include "event.h"
- int main(int argc, char* argv[])
- {
- if (argc != 3) return -1;
- std::string mode = argv[1], path = argv[2];
- bool loop = false;
- {
- if (mode == "loop")
- {
- loop = true;
- send_notif(" \"Event Loop\" \"Event loop has started.\"");
- }
- else if (mode == "now") loop = false;
- else return -1;
- }
- std::vector<event_t> events;
- load_conf(events, path);
- event_loop(events, loop);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement