Major refactor of code: removed dependency on libcurl, added url.hpp, moved everything in the oim namespace, updated readme, added more documentation comments

This commit is contained in:
Baldomo
2020-12-25 22:31:41 +01:00
parent 98de7307d1
commit c6db44ea7c
7 changed files with 318 additions and 201 deletions

View File

@@ -1,5 +1,6 @@
#include "mpvopts.hpp"
#include "mpvipc.hpp"
#include "options.hpp"
#include "ipc.hpp"
#include <cstdlib>
#include <fstream>
#include <iostream>
@@ -43,7 +44,7 @@ int main(int argc, char const *argv[]) {
return install_protocol();
}
mpvoptions *mo = new mpvoptions();
oim::options *mo = new oim::options();
try {
mo->parse(argv[1]);
} catch (string err) {
@@ -52,7 +53,7 @@ int main(int argc, char const *argv[]) {
}
if (mo->needs_ipc()) {
mpvipc *mipc = new mpvipc();
oim::ipc *mipc = new oim::ipc();
bool success = mipc->send(mo->build_ipc());
if (success) {
return 0;