| OLD | NEW |
| 1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ | 1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
| 2 /* ***** BEGIN LICENSE BLOCK ***** | 2 /* ***** BEGIN LICENSE BLOCK ***** |
| 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 4 * | 4 * |
| 5 * The contents of this file are subject to the Mozilla Public License Version | 5 * The contents of this file are subject to the Mozilla Public License Version |
| 6 * 1.1 (the "License"); you may not use this file except in compliance with | 6 * 1.1 (the "License"); you may not use this file except in compliance with |
| 7 * the License. You may obtain a copy of the License at | 7 * the License. You may obtain a copy of the License at |
| 8 * http://www.mozilla.org/MPL/ | 8 * http://www.mozilla.org/MPL/ |
| 9 * | 9 * |
| 10 * Software distributed under the License is distributed on an "AS IS" basis, | 10 * Software distributed under the License is distributed on an "AS IS" basis, |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 NPN_UnfocusInstancePtr unfocusinstance; | 210 NPN_UnfocusInstancePtr unfocusinstance; |
| 211 NPN_URLRedirectResponsePtr urlredirectresponse; | 211 NPN_URLRedirectResponsePtr urlredirectresponse; |
| 212 } NPNetscapeFuncs; | 212 } NPNetscapeFuncs; |
| 213 | 213 |
| 214 #ifdef XP_MACOSX | 214 #ifdef XP_MACOSX |
| 215 /* | 215 /* |
| 216 * Mac OS X version(s) of NP_GetMIMEDescription(const char *) | 216 * Mac OS X version(s) of NP_GetMIMEDescription(const char *) |
| 217 * These can be called to retreive MIME information from the plugin dynamically | 217 * These can be called to retreive MIME information from the plugin dynamically |
| 218 * | 218 * |
| 219 * Note: For compatibility with Quicktime, BPSupportedMIMEtypes is another way | 219 * Note: For compatibility with Quicktime, BPSupportedMIMEtypes is another way |
| 220 * to get mime info from the plugin only on OSX and may not be supported | 220 * to get mime info from the plugin only on OSX and may not be supported |
| 221 * in furture version -- use NP_GetMIMEDescription instead | 221 * in furture version -- use NP_GetMIMEDescription instead |
| 222 */ | 222 */ |
| 223 enum | 223 enum |
| 224 { | 224 { |
| 225 kBPSupportedMIMETypesStructVers_1 = 1 | 225 kBPSupportedMIMETypesStructVers_1 = 1 |
| 226 }; | 226 }; |
| 227 typedef struct _BPSupportedMIMETypes | 227 typedef struct _BPSupportedMIMETypes |
| 228 { | 228 { |
| 229 SInt32 structVersion; /* struct version */ | 229 SInt32 structVersion; /* struct version */ |
| 230 Handle typeStrings; /* STR# formated handle, allocated by plug-in */ | 230 Handle typeStrings; /* STR# formated handle, allocated by plug-in */ |
| 231 Handle infoStrings; /* STR# formated handle, allocated by plug-in */ | 231 Handle infoStrings; /* STR# formated handle, allocated by plug-in */ |
| 232 } BPSupportedMIMETypes; | 232 } BPSupportedMIMETypes; |
| 233 OSErr BP_GetSupportedMIMETypes(BPSupportedMIMETypes *mimeInfo, UInt32 flags); | 233 OSErr BP_GetSupportedMIMETypes(BPSupportedMIMETypes *mimeInfo, UInt32 flags); |
| 234 #define NP_GETMIMEDESCRIPTION_NAME "NP_GetMIMEDescription" | 234 #define NP_GETMIMEDESCRIPTION_NAME "NP_GetMIMEDescription" |
| 235 typedef const char* (*NP_GetMIMEDescriptionProcPtr)(void); | 235 typedef const char* (*NP_GetMIMEDescriptionProcPtr)(void); |
| 236 typedef OSErr (*BP_GetSupportedMIMETypesProcPtr)(BPSupportedMIMETypes*, UInt32); | 236 typedef OSErr (*BP_GetSupportedMIMETypesProcPtr)(BPSupportedMIMETypes*, UInt32); |
| 237 #endif | 237 #endif |
| 238 | 238 |
| 239 #endif /* npfunctions_h_ */ | 239 #endif /* npfunctions_h_ */ |
| OLD | NEW |