1/* 2 * Copyright (c) 2006 Apple Computer, Inc. All rights reserved. 3 * 4 * @APPLE_LICENSE_HEADER_START@ 5 * 6 * This file contains Original Code and/or Modifications of Original Code 7 * as defined in and that are subject to the Apple Public Source License 8 * Version 2.0 (the 'License'). You may not use this file except in 9 * compliance with the License. Please obtain a copy of the License at 10 * http://www.opensource.apple.com/apsl/ and read it before using this 11 * file. 12 * 13 * The Original Code and all software distributed under the License are 14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 18 * Please see the License for the specific language governing rights and 19 * limitations under the License. 20 * 21 * @APPLE_LICENSE_HEADER_END@ 22 */ 23#ifndef _KEXTFIND_COMMANDS_H_ 24#define _KEXTFIND_COMMANDS_H_ 25 26#include <CoreFoundation/CoreFoundation.h> 27#include <IOKit/kext/OSKext.h> 28 29#include "kextfind_main.h" 30 31void printKext( 32 OSKextRef theKext, 33 PathSpec relativePath, 34 Boolean extra_info, 35 char lineEnd); 36 37void printKextProperty( 38 OSKextRef theKext, 39 CFStringRef propKey, 40 char lineEnd); 41void printKextMatchProperty( 42 OSKextRef theKext, 43 CFStringRef propKey, 44 char lineEnd); 45void printKextArches( 46 OSKextRef theKext, 47 char lineEnd, 48 Boolean printLineEnd); 49 50void printKextDependencies( 51 OSKextRef theKext, 52 PathSpec pathSpec, 53 Boolean extra_info, 54 char lineEnd); 55void printKextDependents( 56 OSKextRef theKext, 57 PathSpec pathSpec, 58 Boolean extra_info, 59 char lineEnd); 60void printKextPlugins( 61 OSKextRef theKext, 62 PathSpec pathSpec, 63 Boolean extra_info, 64 char lineEnd); 65 66void printKextInfoDictionary( 67 OSKextRef theKext, 68 PathSpec pathSpec, 69 char lineEnd); 70void printKextExecutable( 71 OSKextRef theKext, 72 PathSpec pathSpec, 73 char lineEnd); 74 75CFStringRef copyPathForKext( 76 OSKextRef theKext, 77 PathSpec pathSpec); 78 79CFStringRef copyKextInfoDictionaryPath( 80 OSKextRef theKext, 81 PathSpec pathSpec); 82CFStringRef copyKextExecutablePath( 83 OSKextRef theKext, 84 PathSpec pathSpec); 85 86#endif /* _KEXTFIND_COMMANDS_H_ */