mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +01:00
Log in the screenshot cpp example
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#include <idevice++/bindings.hpp>
|
||||||
#include <idevice++/core_device_proxy.hpp>
|
#include <idevice++/core_device_proxy.hpp>
|
||||||
#include <idevice++/dvt/remote_server.hpp>
|
#include <idevice++/dvt/remote_server.hpp>
|
||||||
#include <idevice++/dvt/screenshot.hpp>
|
#include <idevice++/dvt/screenshot.hpp>
|
||||||
@@ -23,6 +24,7 @@ static void die(const char* msg, const FfiError& e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
|
idevice_init_logger(Debug, Disabled, NULL);
|
||||||
// Usage:
|
// Usage:
|
||||||
// take_screenshot <output.png>
|
// take_screenshot <output.png>
|
||||||
if (argc != 2) {
|
if (argc != 2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user