fix(bypass): Add missing stdlib.h and path_a internal header
Fixes build error from missing free() declaration in path_a.c. Created path_a_internal.h for shared declarations between path_a.c and path_a_jailbreak.c per project splitting convention. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
90ad9b688c
commit
a6ba920e14
3 changed files with 20 additions and 4 deletions
17
include/bypass/path_a_internal.h
Normal file
17
include/bypass/path_a_internal.h
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
/*
|
||||||
|
* path_a_internal.h -- Internal declarations shared between path_a.c
|
||||||
|
* and path_a_jailbreak.c.
|
||||||
|
*
|
||||||
|
* Not part of the public API. Include only within the bypass module.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef BYPASS_PATH_A_INTERNAL_H
|
||||||
|
#define BYPASS_PATH_A_INTERNAL_H
|
||||||
|
|
||||||
|
#include "device/device.h"
|
||||||
|
|
||||||
|
int path_a_load_ramdisk(device_info_t *dev);
|
||||||
|
int path_a_jailbreak(device_info_t *dev);
|
||||||
|
int path_a_replace_mobileactivationd(device_info_t *dev);
|
||||||
|
|
||||||
|
#endif /* BYPASS_PATH_A_INTERNAL_H */
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
* activation to record/activation, and cleanup to deletescript.
|
* activation to record/activation, and cleanup to deletescript.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "bypass/path_a.h"
|
#include "bypass/path_a.h"
|
||||||
|
|
@ -15,10 +16,7 @@
|
||||||
#include "activation/record.h"
|
#include "activation/record.h"
|
||||||
#include "util/log.h"
|
#include "util/log.h"
|
||||||
|
|
||||||
/* Forward declarations from path_a_jailbreak.c */
|
#include "bypass/path_a_internal.h"
|
||||||
int path_a_load_ramdisk(device_info_t *dev);
|
|
||||||
int path_a_jailbreak(device_info_t *dev);
|
|
||||||
int path_a_replace_mobileactivationd(device_info_t *dev);
|
|
||||||
|
|
||||||
/* ------------------------------------------------------------------ */
|
/* ------------------------------------------------------------------ */
|
||||||
/* Module probe/execute */
|
/* Module probe/execute */
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "bypass/path_a_internal.h"
|
||||||
#include "device/device.h"
|
#include "device/device.h"
|
||||||
#include "util/log.h"
|
#include "util/log.h"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue