mirror of
https://github.com/darlinghq/darling-libxpc.git
synced 2025-02-17 01:37:40 +00:00
Use __simple_kprintf and fix os_transaction declaration type
This commit is contained in:
parent
183f5ccf20
commit
a5bdf2f177
@ -1,9 +1,13 @@
|
||||
#ifndef _OS_TRANSACTION_PRIVATE_H_
|
||||
#define _OS_TRANSACTION_PRIVATE_H_
|
||||
|
||||
#include <os/object.h>
|
||||
#include <os/object_private.h>
|
||||
|
||||
OS_OBJECT_DECL_CLASS(os_transaction);
|
||||
#if OS_OBJECT_USE_OBJC
|
||||
OS_OBJECT_DECL_IMPL_CLASS(os_transaction, OS_OBJECT_CLASS(object));
|
||||
#else
|
||||
typedef struct os_transaction_s* os_transaction_t;
|
||||
#endif
|
||||
|
||||
os_transaction_t os_transaction_create(const char* transaction_name);
|
||||
|
||||
|
@ -30,6 +30,7 @@
|
||||
|
||||
#include <sys/queue.h>
|
||||
#include "xpc/xpc.h"
|
||||
#include <darling/emulation/simple.h>
|
||||
|
||||
#ifdef XPC_DEBUG
|
||||
#define debugf(...) \
|
||||
@ -39,12 +40,7 @@
|
||||
fprintf(stderr, "\n"); \
|
||||
} while(0);
|
||||
#else
|
||||
#define debugf(...) \
|
||||
do { \
|
||||
char buf[512]; \
|
||||
sprintf(buf, "libxpc: " __VA_ARGS__); \
|
||||
lkm_call(0x1028, buf); \
|
||||
} while(0);
|
||||
#define debugf(...) __simple_kprintf("libxpc: " __VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#define _XPC_TYPE_INVALID 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user