mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-10 05:13:38 +00:00
It uses a Private API from Apple for Full Disk Access, which might not work forever, but for the current versions is working. The FDA code is converted from Objective-C from https://github.com/MacPaw/PermissionsKit
39 lines
912 B
C
39 lines
912 B
C
/*
|
|
* mac_kvm.h
|
|
*
|
|
*
|
|
* Created by Ylian Saint-Hilaire on 8/17/11.
|
|
* Copyright 2011 __MyCompanyName__. All rights reserved.
|
|
*
|
|
*/
|
|
#ifndef LINUX_KVM_H_
|
|
#define LINUX_KVM_H_
|
|
|
|
#include <ApplicationServices/ApplicationServices.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include <pthread.h>
|
|
#include <dirent.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <sys/stat.h>
|
|
#include <sys/timeb.h>
|
|
#include <unistd.h>
|
|
|
|
#include "mac_tile.h"
|
|
#include "mac_events.h"
|
|
#include "../../../microstack/ILibParsers.h"
|
|
|
|
typedef ILibTransport_DoneState(*ILibKVM_WriteHandler)(char *buffer, int bufferLen, void *reserved);
|
|
|
|
void kvm_check_permission();
|
|
|
|
int kvm_relay_feeddata(char* buf, int len);
|
|
void kvm_pause(int pause);
|
|
void* kvm_relay_setup(char *exePath, void *processPipeMgr, ILibKVM_WriteHandler writeHandler, void *reserved, int uid);
|
|
void kvm_relay_reset();
|
|
void kvm_cleanup();
|
|
|
|
#endif /* LINUX_KVM_H_ */
|
|
|