-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from dhinakg/filter
- Loading branch information
Showing
14 changed files
with
636 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef ARGS_H | ||
#define ARGS_H | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface ExtractionConfiguration : NSObject <NSCopying> | ||
|
||
@property(nonatomic, assign) bool encrypted; | ||
@property(nonatomic, assign) bool list; | ||
@property(nonatomic, strong) NSString* archivePath; | ||
@property(nonatomic, strong) NSString* outputDirectory; | ||
@property(nonatomic, strong) NSData* key; | ||
@property(nonatomic, strong) NSString* filter; | ||
@property(nonatomic, strong) NSRegularExpression* regex; | ||
|
||
@property(nonatomic, strong) NSString* function; | ||
|
||
- (instancetype)copyWithFunction:(NSString*)function; | ||
|
||
@end | ||
|
||
ExtractionConfiguration* parseArgs(int argc, char** argv, int* returnCode); | ||
int validateArgs(ExtractionConfiguration* config); | ||
|
||
#endif /* ARGS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
#ifndef EXTRACT_H | ||
#define EXTRACT_H | ||
|
||
#include <AppleArchive/AppleArchive.h> | ||
#include <Foundation/Foundation.h> | ||
#import <AppleArchive/AppleArchive.h> | ||
#import <Foundation/Foundation.h> | ||
|
||
int extractAsset(AAByteStream stream, NSString* outputDirectory); | ||
#import "args.h" | ||
|
||
int extractAsset(AAByteStream stream, ExtractionConfiguration* config); | ||
|
||
#endif /* EXTRACT_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
#ifndef EXTRACT_STANDALONE_H | ||
#define EXTRACT_STANDALONE_H | ||
|
||
#include <AppleArchive/AppleArchive.h> | ||
#include <Foundation/Foundation.h> | ||
#import <AppleArchive/AppleArchive.h> | ||
#import <Foundation/Foundation.h> | ||
|
||
int extractAssetStandalone(AAByteStream stream, NSString* outputDirectory); | ||
#import "args.h" | ||
|
||
int extractAssetStandalone(AAByteStream stream, ExtractionConfiguration* config); | ||
|
||
#endif /* EXTRACT_STANDALONE_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.