home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / nav-java / stubs / src / stubnj.c < prev   
Encoding:
C/C++ Source or Header  |  1998-04-08  |  38.2 KB  |  1,036 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. /* From mozilla */
  19. #include "lj.h"
  20. #include "java.h"
  21. #include "javasec.h"
  22.  
  23. /* From nspr */
  24. #include "prthread.h"
  25.  
  26. /* From softupdt */
  27. #include "softupdt.h"
  28.  
  29. /* From edtplug */
  30. #include "edtplug.h"
  31.  
  32. /* for Mocha glue */
  33. #include "jsapi.h"
  34. #include "jsjava.h"
  35.  
  36. #if !defined (XP_MAC)
  37. #include "netscape_plugin_composer_PluginManager.h"
  38. #include "netscape_plugin_Plugin.h"
  39. #include "netscape_plugin_composer_Composer.h"
  40. #include "netscape_security_PrivilegeManager.h"
  41. #include "netscape_security_PrivilegeTable.h"
  42. #include "netscape_security_Privilege.h"
  43. #include "netscape_security_Target.h"
  44. #include "netscape_security_Zig.h"
  45. #include "netscape_security_Principal.h"
  46. #include "netscape_applet_EmbeddedObjectNatives.h"
  47. #include "netscape_applet_MozillaAppletContext.h"
  48. #include "netscape_javascript_JSObject.h"
  49. #include "netscape_javascript_JSException.h"
  50. #else
  51. #include "n_p_composer_PluginManager.h"
  52. #include "netscape_plugin_Plugin.h"
  53. #include "n_plugin_composer_Composer.h"
  54. #include "n_security_PrivilegeManager.h"
  55. #include "n_security_PrivilegeTable.h"
  56. #include "netscape_security_Privilege.h"
  57. #include "netscape_security_Target.h"
  58. #include "netscape_security_Zig.h"
  59. #include "netscape_security_Principal.h"
  60. #include "n_a_EmbeddedObjectNatives.h"
  61. #include "n_applet_MozillaAppletContext.h"
  62. #include "netscape_javascript_JSObject.h"
  63. #include "n_javascript_JSException.h"
  64. #endif
  65.  
  66. JRI_PUBLIC_API(int) LJ_JSJ_IsEnabled(void);
  67.  
  68. /*
  69. static JSJCallbacks jsj_callbacks = {
  70.     LJ_JSJ_IsEnabled,
  71.     LJ_JSJ_CurrentEnv,
  72.     LJ_JSJ_CurrentContext,
  73.     LM_LockJS,
  74.     LM_UnlockJS,
  75.     LJ_JSJ_GetJSClassLoader,
  76.     LJ_JSJ_GetJSPrincipalsFromJavaCaller,
  77.     LJ_JSJ_GetDefaultObject
  78. };
  79. */
  80. /*
  81. static JSJCallbacks jsj_callbacks = {
  82.     LJ_JSJ_IsEnabled,
  83.     NULL,
  84.     NULL,
  85.     NULL,
  86.     NULL,
  87.     NULL,
  88.     NULL,
  89.     NULL
  90. };
  91. */
  92.  
  93. /* ArrayAlloc                                                                       libjsj.so */
  94. /* AwtRegisterXtAppVars                                                             mozilla.o */
  95. /* CompiledFramePrev                                                                libjsj.so */
  96. /* CreateNewJavaStack                                                               libjsj.so */
  97.  
  98. /* EDTPLUG_RegisterEditURLCallback                                                  editor.o */
  99. /* ns/modules/edtplug/include/edtplug.h */
  100. /* ns/modules/edtplug/src/edtplugStubs.c */
  101. void
  102. EDTPLUG_RegisterEditURLCallback(EditURLCallback callback)
  103. {
  104.   return;
  105. }
  106.  
  107.  
  108. /* ExecuteJava                                                                      libjsj.so */
  109. /* FindClassFromClass                                                               libjsj.so */
  110. /* FindLoadedClass                                                                  libjsj.so */
  111. /* JMCException_Destroy                                                             xfe.o */
  112. /* JRI_GetCurrentEnv                                                                libplug.so */
  113.  
  114.  
  115. /* LJ_AddToClassPath                                                                libxfe2.so */
  116. /* ns/modules/applet/include/java.h */
  117. /* ns/modules/applet/src/lj_init.c */
  118. JRI_PUBLIC_API(void) 
  119. LJ_AddToClassPath(char* dirPath) 
  120. {
  121.   return;
  122. }
  123.  
  124. /* LJ_Applet_GetText                                                                liblay.so */
  125. /* ns/modules/applet/include/java.h */
  126. /* ns/modules/applet/src/lj_run.c */
  127. JRI_PUBLIC_API(char *) 
  128. LJ_Applet_GetText(LJAppletData* ad) 
  129.   return NULL; 
  130. }
  131.  
  132. /* LJ_Applet_print                                                                  libxlate.so */
  133. /* ns/modules/applet/include/java.h */
  134. /* ns/modules/applet/src/lj_run.c */
  135. JRI_PUBLIC_API(void) 
  136. LJ_Applet_print(LJAppletData *ad, void* printInfo) 
  137. {
  138.   return;
  139. }
  140.  
  141.  
  142. /* LJ_CreateApplet                                                                  liblay.so */
  143. /* ns/modules/applet/include/java.h */
  144. /* ns/modules/applet/src/lj_embed.c */
  145. JRI_PUBLIC_API(void)
  146. LJ_CreateApplet(LO_JavaAppStruct *java, MWContext *cx,
  147.         NET_ReloadMethod reloadMethod)
  148.   return; 
  149. }
  150.  
  151.  
  152. /* LJ_DeleteSessionData                                                             liblay.so */
  153. /* ns/modules/applet/include/java.h */
  154. /* ns/modules/applet/src/lj_embed.c */
  155. JRI_PUBLIC_API(void) 
  156. LJ_DeleteSessionData(MWContext* cx, void* sdata) 
  157.   return; 
  158. }
  159.  
  160.  
  161. /* LJ_DiscardEventsForContext                                                       xfe.o */
  162. /* ns/modules/applet/include/java.h */
  163. /* ns/modules/applet/src/lj_embed.c */
  164. JRI_PUBLIC_API(void)
  165. LJ_DiscardEventsForContext(MWContext* context) 
  166.   return; 
  167. }
  168.  
  169.  
  170. /* LJ_DisplayJavaApp                                                                lay.o */
  171. /* ns/modules/applet/include/java.h */
  172. /* ns/modules/applet/src/lj_embed.c */
  173. JRI_PUBLIC_API(void)
  174. LJ_DisplayJavaApp(MWContext *context, ...)
  175.   return; 
  176. }
  177.  
  178.  
  179.  
  180. /* LJ_EnsureJavaEnv                                                                 libplug.so */
  181. /* ns/modules/applet/include/java.h */
  182. /* ns/modules/applet/src/lj_init.c */
  183. JRI_PUBLIC_API(JRIEnv *)
  184. LJ_EnsureJavaEnv(PRThread *thread) 
  185.   return NULL; 
  186. }
  187.  
  188. /* LJ_FreeJavaAppElement                                                            lay.o */
  189. /* ns/modules/applet/include/java.h */
  190. /* ns/modules/applet/src/lj_embed.c */
  191. JRI_PUBLIC_API(void)
  192. LJ_FreeJavaAppElement(MWContext *context, ...)
  193.   return; 
  194. }
  195.  
  196.  
  197. /* LJ_GetAppletScriptOrigin                                                         libmocha.so */
  198. /* ns/modules/applet/src/lj_run.c */
  199. JRI_PUBLIC_API(char *)
  200. LJ_GetAppletScriptOrigin(JRIEnv *env)
  201.   return NULL; 
  202. }
  203.  
  204. /* LJ_GetJavaAppSize                                                                lay.o */
  205. /* ns/modules/applet/src/java.h */
  206. /* ns/modules/applet/src/lj_run.c */
  207. JRI_PUBLIC_API(void)
  208. LJ_GetJavaAppSize(MWContext *context, LO_JavaAppStruct *java_struct,
  209.                   NET_ReloadMethod reloadMethod)
  210.   return; 
  211. }
  212.  
  213.  
  214. /* LJ_GetJavaEnabled                                                                libxfe2.so */
  215. /* ns/modules/applet/include/java.h */
  216. /* ns/modules/applet/src/lj_init.c */
  217. JRI_PUBLIC_API(PRBool)
  218. LJ_GetJavaEnabled(void)
  219.   return PR_FALSE; 
  220. }
  221.  
  222.  
  223. /* LJ_GetMochaWindow                                                                liblay.so */
  224. /* ns/modules/applet/include/java.h */
  225. /* ns/modules/applet/src/lj_run.c */
  226. JRI_PUBLIC_API(struct netscape_javascript_JSObject*)
  227. LJ_GetMochaWindow(MWContext *cx)
  228.   return NULL; 
  229. }
  230.  
  231.  
  232. /* LJ_HandleEvent                                                                   liblay.so */
  233. /* ns/modules/applet/include/java.h */
  234. /* ns/modules/applet/src/lj_embed.c */
  235. JRI_PUBLIC_API(PRBool) 
  236. LJ_HandleEvent(MWContext* context, LO_JavaAppStruct *pJava, void *event)
  237.   return PR_FALSE; 
  238. }
  239.  
  240.  
  241. /* LJ_HideConsole                                                                   commands.o */
  242. /* ns/modules/applet/include/java.h */
  243. /* ns/modules/applet/src/lj_cons.c */
  244. JRI_PUBLIC_API(void)
  245. LJ_HideConsole(void) 
  246.   return; 
  247. }
  248.  
  249. /* LJ_HideJavaAppElement                                                            lay.o */
  250. /* ns/modules/applet/include/java.h */
  251. /* ns/modules/applet/src/lj_embed.c */
  252. JRI_PUBLIC_API(void)
  253. LJ_HideJavaAppElement(MWContext *context, ...)
  254.   return; 
  255. }
  256.  
  257. /* LJ_IconifyApplets                                                                xfe.o */
  258. /* ns/modules/applet/include/java.h */
  259. /* ns/modules/applet/src/lj_run.c */
  260. JRI_PUBLIC_API(void) 
  261. LJ_IconifyApplets(MWContext* context)
  262.   return; 
  263. }
  264.  
  265. /* LJ_InitializeZig                                                                 libmocha.so */
  266. /* ns/modules/applet/include/java.h */
  267. /* ns/modules/applet/src/appletStubs.c */
  268. PR_PUBLIC_API(void *)
  269. LJ_InitializeZig(void *zipPtr)
  270.   return NULL; 
  271. }
  272.  
  273.  
  274. /* LJ_InvokeMethod                                                                  libmocha.so */
  275. /* ns/modules/applet/src/lj_run.c */
  276. jref
  277. LJ_InvokeMethod(jglobal clazzGlobal, ...)
  278.   return NULL; 
  279. }
  280.  
  281. /* LJ_JSJ_CurrentEnv                                                                libmocha.so */
  282. /* ns/modules/applet/include/java.h */
  283. /* ns/modules/applet/src/lj_run.c */
  284. JRI_PUBLIC_API(JRIEnv *)
  285. LJ_JSJ_CurrentEnv(JSContext *cx)
  286.   return NULL; 
  287. }
  288.  
  289. /* LJ_JSJ_CurrentContext                                                            not referenced */
  290. /* ns/modules/applet/include/java.h */
  291. /* ns/modules/applet/src/lj_run.c */
  292. PR_PUBLIC_API(void *)
  293. LJ_JSJ_CurrentContext(JRIEnv *env, char **errp)
  294. {
  295.   return NULL;
  296. }
  297.  
  298. /* LJ_JSJ_GetJSClassLoader                                                          not referenced */
  299. /* ns/modules/applet/include/java.h */
  300. /* ns/modules/applet/src/lj_run.c */
  301. JRI_PUBLIC_API(void *)
  302. LJ_JSJ_GetJSClassLoader(void *cx, const char *codebase)
  303. {
  304.   return NULL;
  305. }
  306.  
  307. /* LJ_JSJ_GetJSPrincipalsFromJavaCaller                                             not referenced */
  308. /* ns/modules/applet/include/java.h */
  309. /* ns/modules/applet/src/lj_run.c */
  310. void * PR_CALLBACK
  311. LJ_JSJ_GetJSPrincipalsFromJavaCaller(void *cx, int callerDepth)
  312. {
  313.   return NULL;
  314. }
  315.  
  316. /* LJ_JSJ_IsEnabled                                                                 not referenced */
  317. /* ns/modules/applet/include/java.h */
  318. /* ns/modules/applet/src/lj_run.c */
  319. JRI_PUBLIC_API(int)
  320. LJ_JSJ_IsEnabled(void)
  321. {
  322.   return 0;
  323. }
  324.  
  325. /* LJ_JSJ_Init                                                                      libmocha.so */
  326. /* ns/modules/applet/include/java.h */
  327. /* ns/modules/applet/src/lj_run.c */
  328. JRI_PUBLIC_API(void)
  329. LJ_JSJ_Init()
  330.   /* JSJ_Init(&jsj_callbacks); */
  331.   return; 
  332. }
  333.  
  334. /* LJ_LoadFromZipFile                                                               libmocha.so */
  335. /* ns/modules/applet/include/java.h */
  336. /* ns/modules/applet/src/appletStubs.c */
  337. PR_PUBLIC_API(char *)
  338. LJ_LoadFromZipFile(void *zip, char *fn)
  339.   return NULL; 
  340. }
  341.  
  342.  
  343. /* LJ_PrintZigError                                                                 libmocha.so */
  344. /* ns/modules/applet/include/java.h */
  345. /* ns/modules/applet/src/appletStubs.c */
  346. PR_PUBLIC_API(int)
  347. LJ_PrintZigError(int status, void *zigPtr, const char *metafile, char *pathname, 
  348.          char *errortext)
  349.   return 0; 
  350. }
  351.  
  352. /* LJ_SetConsoleShowCallback                                                        mozilla.o */
  353. /* ns/modules/applet/include/java.h */
  354. /* ns/modules/applet/src/lj_cons.c */
  355. JRI_PUBLIC_API(void)
  356. LJ_SetConsoleShowCallback(void (*func)(int on, void* a), void *arg)
  357.   return; 
  358. }
  359.  
  360. /* LJ_SetProgramName                                                                mozilla.o */
  361. /* ns/modules/applet/include/java.h */
  362. /* ns/modules/applet/src/lj_init.c */
  363. void
  364. LJ_SetProgramName(const char *name)
  365.   return; 
  366. }
  367.  
  368.  
  369. /* LJ_ShowConsole                                                                   commands.o */
  370. /* ns/modules/applet/include/java.h */
  371. /* ns/modules/applet/src/lj_cons.c */
  372. JRI_PUBLIC_API(void)
  373. LJ_ShowConsole(void) 
  374.   return; 
  375. }
  376.  
  377. /* LJ_ShutdownJava                                                                  libxfe2.so */
  378. /* ns/modules/applet/include/java.h */
  379. /* ns/modules/applet/src/lj_init.c */
  380. JRI_PUBLIC_API(LJJavaStatus)
  381. LJ_ShutdownJava(void) 
  382.   return LJJavaStatus_Disabled; 
  383. }
  384.  
  385. /* LJ_UniconifyApplets                                                              xfe.o */
  386. /* ns/modules/applet/include/java.h */
  387. /* ns/modules/applet/src/lj_run.c */
  388. JRI_PUBLIC_API(void)
  389. LJ_UniconifyApplets(MWContext* context)
  390.   return; 
  391. }
  392.  
  393. /* ??? Is it needed for windows ??? */
  394. /* LJ_StartupJava used in ./cmd/winfe/woohoo.cpp */
  395. /* ns/modules/applet/include/java.h */
  396. /* ns/modules/applet/src/lj_init.c */
  397. JRI_PUBLIC_API(LJJavaStatus)
  398. LJ_StartupJava(void) 
  399.   return LJJavaStatus_Disabled; 
  400. }
  401.  
  402.  
  403. /* MakeClassSticky                                                                  libjsj.so */
  404. /* sun-java */
  405.  
  406.  
  407. /* NSN_JavaContextToRealContext                                                     xfe.o */
  408. /* ns/modules/applet/include/java.h */
  409. /* ns/nav-java/netscape/security/netStubs.c */
  410. JRI_PUBLIC_API(MWContext *)
  411. NSN_JavaContextToRealContext(MWContext *cx)
  412. {
  413.   return NULL;
  414. }
  415.  
  416. /* NSN_RegisterJavaConverter                                                        libnet.so */
  417. /* ns/modules/applet/include/java.h */
  418. /* ns/nav-java/netscape/security/netStubs.c */
  419. JRI_PUBLIC_API(void) 
  420. NSN_RegisterJavaConverter(void)
  421. {
  422.   return;
  423. }
  424.  
  425. /* PrintToConsole                                                                   libmocha.so */
  426. /* ns/modules/applet/include/java.h */
  427. /* ns/modules/applet/src/appletStubs.c */
  428. JRI_PUBLIC_API(void) PrintToConsole(const char* bytes)
  429. {
  430.   return;
  431. }
  432.  
  433. #ifdef XP_MAC
  434. #pragma export on
  435. #endif
  436.  
  437. /* SU_NewStream                                                                     libnet.so */
  438. /* ns/modules/softupdt/include/softupdt.h */
  439. /* ns/modules/softupdt/src/softupdt.c */
  440. XP_Bool SU_StartSoftwareUpdate(MWContext * context, 
  441.                    const char * url, 
  442.                    const char * name, 
  443.                    SoftUpdateCompletionFunction f,
  444.                    void * completionClosure,
  445.                                int32 flags) /* FORCE_INSTALL, SILENT_INSTALL */
  446. {
  447.   return SILENT_INSTALL;
  448. }
  449.  
  450. /* SU_StartSoftwareUpdate                                                           libmocha.so */
  451. /* ns/modules/softupdt/include/softupdt.h */
  452. /* ns/modules/softupdt/src/softupdt.c */
  453. NET_StreamClass * SU_NewStream (int format_out, void * registration,
  454.                 URL_Struct * request, MWContext *context)
  455. {
  456.   return NULL;
  457. }
  458.  
  459.  
  460. #ifdef XP_MAC
  461. #pragma export reset
  462. #endif
  463.  
  464.  
  465. /* VerifyClassAccess                                                                libjsj.so */
  466. /* sun-java */
  467.  
  468. /* VerifyFieldAccess                                                                libjsj.so */
  469. /* sun-java */
  470.  
  471. /* awt_MToolkit_dispatchToWidget                                                    mozilla.o */
  472. /* sun-java */
  473.  
  474. /* awt_MToolkit_finishModals                                                        mozilla.o */
  475. /* sun-java */
  476.  
  477. /* classEmbeddedObjectNatives                                                       libmocha.so */
  478. /* ns/modules/applet/include/lj.h */
  479. /* ns/modules/applet/src/lj_init.c */
  480. JRI_PUBLIC_VAR(jglobal)
  481. classEmbeddedObjectNatives = NULL;
  482.  
  483. /* classMozillaAppletContext                                                        libmocha.so */
  484. /* ns/modules/applet/include/lj.h */
  485. /* ns/modules/applet/src/lj_init.c */
  486. JRI_PUBLIC_VAR(jglobal)
  487. classMozillaAppletContext = NULL;
  488.  
  489. /* do_execute_java_method                                                           libjsj.so */
  490. /* sun-java */
  491.  
  492. /* do_execute_java_method_vararg                                                    libjsj.so */
  493. /* sun-java */
  494.  
  495. /* execute_java_constructor                                                         libjsj.so */
  496. /* sun-java */
  497.  
  498. /* execute_java_constructor_vararg                                                  libjsj.so */
  499. /* sun-java */
  500.  
  501. /* is_subclass_of                                                                   libjsj.so */
  502. /* sun-java */
  503.  
  504. /* java_netscape_security_getPrincipals                                             libsecnav.so */
  505. /* ns/nav-java/netscape/security/javasec.h */
  506. /* ns/nav-java/netscape/security/secStubs.c */
  507. JRI_PUBLIC_API(const char *)
  508. java_netscape_security_getPrincipals(const char *charSetName)
  509. {
  510.   return NULL;
  511. }
  512.  
  513. /* java_netscape_security_getPrivilegeDescs                                         libsecnav.so */
  514. /* ns/nav-java/netscape/security/javasec.h */
  515. /* ns/nav-java/netscape/security/secStubs.c */
  516. JRI_PUBLIC_API(void)
  517. java_netscape_security_getPrivilegeDescs(const char *charSetName,
  518.                                          char  *prinName, 
  519.                                          char **forever, 
  520.                                          char **session, 
  521.                                          char **denied)
  522. {
  523.   return;
  524. }
  525.  
  526.  
  527. /* java_netscape_security_getTargetDetails                                          libsecnav.so */
  528. /* ns/nav-java/netscape/security/javasec.h */
  529. /* ns/nav-java/netscape/security/secStubs.c */
  530. JRI_PUBLIC_API(void)
  531. java_netscape_security_getTargetDetails(const char *charSetName,
  532.                                         char* targetName, 
  533.                                         char** details, 
  534.                                         char **risk)
  535. {
  536.   return;
  537. }
  538.  
  539. /* java_netscape_security_removePrincipal                                           libsecnav.so */
  540. /* ns/nav-java/netscape/security/javasec.h */
  541. /* ns/nav-java/netscape/security/secStubs.c */
  542. JRI_PUBLIC_API(jint)
  543. java_netscape_security_removePrincipal(const char *charSetName, 
  544.                                        char *prinName)
  545. {
  546.   return 0;
  547. }
  548.  
  549. /* java_netscape_security_removePrivilege                                           libsecnav.so */
  550. /* ns/nav-java/netscape/security/javasec.h */
  551. /* ns/nav-java/netscape/security/secStubs.c */
  552. JRI_PUBLIC_API(jint)
  553. java_netscape_security_removePrivilege(const char *charSetName, 
  554.                                        char *prinName,
  555.                                        char *targetName)
  556. {
  557.   return 0;
  558. }
  559.  
  560.  
  561. /* java_netscape_security_savePrivilege                                             libsecnav.so */
  562. /* ns/nav-java/netscape/security/javasec.h */
  563. /* ns/nav-java/netscape/security/secStubs.c */
  564. JRI_PUBLIC_API(void)
  565. java_netscape_security_savePrivilege(int privilege)
  566. {
  567.   return;
  568. }
  569.  
  570. /* makeJavaString                                                                   libmocha.so */
  571. /* sun-java */
  572.  
  573. /* methodID_netscape_applet_EmbeddedObjectNatives_reflectObject                     libmocha.so */
  574. /* ns/modules/applet/src/_jri/netscape_applet_EmbeddedObjectNatives.h */
  575. /* ns/modules/applet/src/_jri/netscape_applet_EmbeddedObjectNatives.c */
  576. JRI_PUBLIC_VAR(JRIMethodID) FAR
  577. methodID_netscape_applet_EmbeddedObjectNatives_reflectObject = JRIUninitialized;
  578.  
  579. /* methodID_netscape_applet_MozillaAppletContext_reflectApplet_1                    libmocha.so */
  580. /* ns/modules/applet/src/_jri/netscape_applet_MozillaAppletContext.h */
  581. /* ns/modules/applet/src/_jri/netscape_applet_MozillaAppletContext.c */
  582. JRI_PUBLIC_VAR(JRIMethodID) FAR
  583. methodID_netscape_applet_MozillaAppletContext_reflectApplet_1 = JRIUninitialized;
  584.  
  585. /* native_netscape_security_PrivilegeManager_getClassPrincipalsFromStackUnsafe      libmocha.so */
  586. /* ns/nav-java/netscape/security/_jri/netscape_security_PrivilegeManager.h */
  587. /* ns/nav-java/netscape/security/_jri/netscape_security_PrivilegeManager.c */
  588. JRI_PUBLIC_API(jref)
  589. native_netscape_security_PrivilegeManager_getClassPrincipalsFromStackUnsafe(JRIEnv* env, struct netscape_security_PrivilegeManager* self, jint a)
  590. {
  591.   return NULL;
  592. }
  593.  
  594.  
  595. /* netscape_plugin_Plugin_destroy                                                   libplug.so */
  596. /* ns/modules/applet/src/_jri/netscape_plugin_Plugin.h */
  597. /* ns/modules/applet/src/_jri/netscape_plugin_Plugin.c */
  598. JRI_PUBLIC_API(void)
  599. netscape_plugin_Plugin_destroy(JRIEnv* env, struct netscape_plugin_Plugin* self) 
  600. {
  601.   return;
  602. }
  603.  
  604. /* netscape_plugin_Plugin_init                                                      libplug.so */
  605. /* ns/modules/applet/src/_jri/netscape_plugin_Plugin.h */
  606. /* ns/modules/applet/src/_jri/netscape_plugin_Plugin.c */
  607. JRI_PUBLIC_API(void)
  608. netscape_plugin_Plugin_init(JRIEnv* env, struct netscape_plugin_Plugin* self) 
  609. {
  610.   return;
  611. }
  612.  
  613.  
  614. /* netscape_plugin_Plugin_new                                                       libplug.so */
  615. /* ns/modules/applet/src/_jri/netscape_plugin_Plugin.h */
  616. /* ns/modules/applet/src/_jri/netscape_plugin_Plugin.c */
  617. JRI_PUBLIC_API(struct netscape_plugin_Plugin*)
  618. netscape_plugin_Plugin_new(JRIEnv* env, struct java_lang_Class* clazz) 
  619. {
  620.   return NULL;
  621. }
  622.  
  623. /* netscape_plugin_composer_Composer_new                                            liblay.so */
  624. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_Composer.h */
  625. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_Composer.c */
  626. JRI_PUBLIC_API(struct netscape_plugin_composer_Composer*)
  627. netscape_plugin_composer_Composer_new(JRIEnv* env, struct java_lang_Class* clazz, jint a, jint b, jint c) 
  628. {
  629.   return NULL;
  630. }
  631.  
  632.  
  633. /* netscape_plugin_composer_PluginManager_getCategoryName                           liblay.so */
  634. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.h */
  635. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.c */
  636. JRI_PUBLIC_API(struct java_lang_String *)
  637. netscape_plugin_composer_PluginManager_getCategoryName(JRIEnv* env, struct netscape_plugin_composer_PluginManager* self, jint a) 
  638. {
  639.   return NULL;
  640. }
  641.  
  642. /* netscape_plugin_composer_PluginManager_getEncoderFileExtension                   liblay.so */
  643. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.h */
  644. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.c */
  645. JRI_PUBLIC_API(struct java_lang_String *)
  646. netscape_plugin_composer_PluginManager_getEncoderFileExtension(JRIEnv* env, struct netscape_plugin_composer_PluginManager* self, jint a) 
  647. {
  648.   return NULL;
  649. }
  650.  
  651. /* netscape_plugin_composer_PluginManager_getEncoderFileType                        liblay.so */
  652. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.h */
  653. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.c */
  654. JRI_PUBLIC_API(struct java_lang_String *)
  655. netscape_plugin_composer_PluginManager_getEncoderFileType(JRIEnv* env, struct netscape_plugin_composer_PluginManager* self, jint a) 
  656. {
  657.   return NULL;
  658. }
  659.  
  660. /* netscape_plugin_composer_PluginManager_getEncoderHint                            liblay.so */
  661. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.h */
  662. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.c */
  663. JRI_PUBLIC_API(struct java_lang_String *)
  664. netscape_plugin_composer_PluginManager_getEncoderHint(JRIEnv* env, struct netscape_plugin_composer_PluginManager* self, jint a) 
  665. {
  666.   return NULL;
  667. }
  668.  
  669. /* netscape_plugin_composer_PluginManager_getEncoderName                            liblay.so */
  670. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.h */
  671. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.c */
  672. JRI_PUBLIC_API(struct java_lang_String *)
  673. netscape_plugin_composer_PluginManager_getEncoderName(JRIEnv* env, struct netscape_plugin_composer_PluginManager* self, jint a) 
  674. {
  675.   return NULL;
  676. }
  677.  
  678. /* netscape_plugin_composer_PluginManager_getEncoderNeedsQuantizedSource            liblay.so */
  679. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.h */
  680. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.c */
  681. JRI_PUBLIC_API(jbool)
  682. netscape_plugin_composer_PluginManager_getEncoderNeedsQuantizedSource(JRIEnv* env, struct netscape_plugin_composer_PluginManager* self, jint a) 
  683. {
  684.   return (jbool)FALSE;
  685. }
  686.  
  687. /* netscape_plugin_composer_PluginManager_getNumberOfCategories                     liblay.so */
  688. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.h */
  689. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.c */
  690. JRI_PUBLIC_API(jint)
  691. netscape_plugin_composer_PluginManager_getNumberOfCategories(JRIEnv* env, struct netscape_plugin_composer_PluginManager* self) 
  692. {
  693.   return 0;
  694. }
  695.  
  696. /* netscape_plugin_composer_PluginManager_getNumberOfEncoders                       liblay.so */
  697. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.h */
  698. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.c */
  699. JRI_PUBLIC_API(jint)
  700. netscape_plugin_composer_PluginManager_getNumberOfEncoders(JRIEnv* env, struct netscape_plugin_composer_PluginManager* self) 
  701. {
  702.   return 0;
  703. }
  704.  
  705. /* netscape_plugin_composer_PluginManager_getNumberOfPlugins                        liblay.so */
  706. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.h */
  707. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.c */
  708. JRI_PUBLIC_API(jint)
  709. netscape_plugin_composer_PluginManager_getNumberOfPlugins(JRIEnv* env, struct netscape_plugin_composer_PluginManager* self, jint a) 
  710. {
  711.   return 0;
  712. }
  713.  
  714. /* netscape_plugin_composer_PluginManager_getPluginHint                             liblay.so */
  715. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.h */
  716. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.c */
  717. JRI_PUBLIC_API(struct java_lang_String *)
  718. netscape_plugin_composer_PluginManager_getPluginHint(JRIEnv* env, struct netscape_plugin_composer_PluginManager* self, jint a, jint b) 
  719. {
  720.   return NULL;
  721. }
  722.  
  723. /* netscape_plugin_composer_PluginManager_getPluginName                             liblay.so */
  724. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.h */
  725. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.c */
  726. JRI_PUBLIC_API(struct java_lang_String *)
  727. netscape_plugin_composer_PluginManager_getPluginName(JRIEnv* env, struct netscape_plugin_composer_PluginManager* self, jint a, jint b) 
  728. {
  729.   return NULL;
  730. }
  731.  
  732. /* netscape_plugin_composer_PluginManager_new                                       liblay.so */
  733. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.h */
  734. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.c */
  735. JRI_PUBLIC_API(struct netscape_plugin_composer_PluginManager*)
  736. netscape_plugin_composer_PluginManager_new(JRIEnv* env, struct java_lang_Class* clazz) 
  737. {
  738.   return NULL;
  739. }
  740.  
  741. /* netscape_plugin_composer_PluginManager_performPlugin                             liblay.so */
  742. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.h */
  743. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.c */
  744. JRI_PUBLIC_API(jbool)
  745. netscape_plugin_composer_PluginManager_performPlugin(JRIEnv* env, struct netscape_plugin_composer_PluginManager* self, struct netscape_plugin_composer_Composer *a, jint b, jint c, struct java_lang_String *d, struct java_lang_String *e, struct java_lang_String *f, struct java_lang_String *g, struct netscape_javascript_JSObject *h) 
  746. {
  747.   return (jbool)FALSE;
  748. }
  749.  
  750. /* netscape_plugin_composer_PluginManager_performPluginByName                       liblay.so */
  751. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.h */
  752. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.c */
  753. JRI_PUBLIC_API(jbool)
  754. netscape_plugin_composer_PluginManager_performPluginByName(JRIEnv* env, struct netscape_plugin_composer_PluginManager* self, struct netscape_plugin_composer_Composer *a, struct java_lang_String *b, struct java_lang_String *c, struct java_lang_String *d, struct java_lang_String *e, struct java_lang_String *f, struct netscape_javascript_JSObject *g) 
  755. {
  756.   return (jbool)FALSE;
  757. }
  758.  
  759. /* netscape_plugin_composer_PluginManager_registerPlugin                            liblay.so */
  760. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.h */
  761. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.c */
  762. JRI_PUBLIC_API(void)
  763. netscape_plugin_composer_PluginManager_registerPlugin(JRIEnv* env, struct netscape_plugin_composer_PluginManager* self, struct java_lang_String *a, struct java_lang_String *b) 
  764. {
  765.   return;
  766. }
  767.  
  768. /* netscape_plugin_composer_PluginManager_startEncoder                              liblay.so */
  769. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.h */
  770. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.c */
  771. JRI_PUBLIC_API(jbool)
  772. netscape_plugin_composer_PluginManager_startEncoder(JRIEnv* env, struct netscape_plugin_composer_PluginManager* self, struct netscape_plugin_composer_Composer *a, jint b, jint c, jint d, jarrayArray e, struct java_lang_String *f) 
  773. {
  774.   return (jbool)FALSE;
  775. }
  776.  
  777. /* netscape_plugin_composer_PluginManager_stopPlugin                                liblay.so */
  778. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.h */
  779. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.c */
  780. JRI_PUBLIC_API(void)
  781. netscape_plugin_composer_PluginManager_stopPlugin(JRIEnv* env, struct netscape_plugin_composer_PluginManager* self, struct netscape_plugin_composer_Composer *a) 
  782. {
  783.   return;
  784. }
  785.  
  786. /* netscape_security_Principal_getVendor                                            libmocha.so */
  787. /* ns/nav-java/netscape/security/_jri/netscape_security_Principal.h */
  788. /* ns/nav-java/netscape/security/_jri/netscape_security_Principal.c */
  789. JRI_PUBLIC_API(struct java_lang_String *)
  790. netscape_security_Principal_getVendor(JRIEnv* env, struct netscape_security_Principal* self) 
  791. {
  792.   return NULL;
  793. }
  794.  
  795. /* netscape_security_Principal_isCodebaseExact                                      libmocha.so */
  796. /* ns/nav-java/netscape/security/_jri/netscape_security_Principal.h */
  797. /* ns/nav-java/netscape/security/_jri/netscape_security_Principal.c */
  798. JRI_PUBLIC_API(jbool)
  799. netscape_security_Principal_isCodebaseExact(JRIEnv* env, struct netscape_security_Principal* self)
  800. {
  801.   return (jbool)FALSE;
  802. }
  803.  
  804. /* netscape_security_Principal_new_3                                                libmocha.so */
  805. /* ns/nav-java/netscape/security/_jri/netscape_security_Principal.h */
  806. /* ns/nav-java/netscape/security/_jri/netscape_security_Principal.c */
  807. JRI_PUBLIC_API(struct netscape_security_Principal*)
  808. netscape_security_Principal_new_3(JRIEnv* env, struct java_lang_Class* clazz, jint a, jbyteArray b)
  809. {
  810.   return NULL;
  811. }
  812.  
  813. /* netscape_security_Principal_new_5                                                libmocha.so */
  814. /* ns/nav-java/netscape/security/_jri/netscape_security_Principal.h */
  815. /* ns/nav-java/netscape/security/_jri/netscape_security_Principal.c */
  816. JRI_PUBLIC_API(struct netscape_security_Principal*)
  817. netscape_security_Principal_new_5(JRIEnv* env, struct java_lang_Class* clazz, jint a, jbyteArray b, struct netscape_security_Zig *c)
  818. {
  819.   return NULL;
  820. }
  821.  
  822. /* netscape_security_Principal_toString                                             libmocha.so */
  823. /* ns/nav-java/netscape/security/_jri/netscape_security_Principal.h */
  824. /* ns/nav-java/netscape/security/_jri/netscape_security_Principal.c */
  825. JRI_PUBLIC_API(struct java_lang_String *)
  826. netscape_security_Principal_toString(JRIEnv* env, struct netscape_security_Principal* self) 
  827. {
  828.   return NULL;
  829. }
  830.  
  831. /* netscape_security_PrivilegeManager_canExtendTrust                                libmocha.so */
  832. /* ns/nav-java/netscape/security/_jri/netscape_security_PrivilegeManager.h */
  833. /* ns/nav-java/netscape/security/_jri/netscape_security_PrivilegeManager.c */
  834. JRI_PUBLIC_API(jbool)
  835. netscape_security_PrivilegeManager_canExtendTrust(JRIEnv* env, struct netscape_security_PrivilegeManager* self, jobjectArray a, jobjectArray b) 
  836. {
  837.   return (jbool)FALSE;
  838. }
  839.  
  840.  
  841. /* netscape_security_PrivilegeManager_comparePrincipalArray                         libmocha.so */
  842. /* ns/nav-java/netscape/security/_jri/netscape_security_PrivilegeManager.h */
  843. /* ns/nav-java/netscape/security/_jri/netscape_security_PrivilegeManager.c */
  844. JRI_PUBLIC_API(jint)
  845. netscape_security_PrivilegeManager_comparePrincipalArray(JRIEnv* env, struct netscape_security_PrivilegeManager* self, jobjectArray a, jobjectArray b)
  846. {
  847.   /* same as NO_SUBSET in PrivilegeManager.java */
  848.   return 1;
  849. }
  850.  
  851.  
  852. /* netscape_security_PrivilegeManager_getClassPrincipalsFromStack                   libmocha.so */
  853. /* ns/nav-java/netscape/security/_jri/netscape_security_PrivilegeManager.h */
  854. /* ns/nav-java/netscape/security/_jri/netscape_security_PrivilegeManager.c */
  855. JRI_PUBLIC_API(jref)
  856. netscape_security_PrivilegeManager_getClassPrincipalsFromStack(JRIEnv* env, struct netscape_security_PrivilegeManager* self, jint a)
  857. {
  858.   return NULL;
  859. }
  860.  
  861. /* netscape_security_PrivilegeManager_getPrivilegeManager                           libmocha.so */
  862. /* ns/nav-java/netscape/security/_jri/netscape_security_PrivilegeManager.h */
  863. /* ns/nav-java/netscape/security/_jri/netscape_security_PrivilegeManager.c */
  864. JRI_PUBLIC_API(struct netscape_security_PrivilegeManager *)
  865. netscape_security_PrivilegeManager_getPrivilegeManager(JRIEnv* env, struct java_lang_Class* clazz)
  866. {
  867.   return NULL;
  868. }
  869.  
  870. /* netscape_security_PrivilegeManager_intersectPrincipalArray                       libmocha.so */
  871. /* ns/nav-java/netscape/security/_jri/netscape_security_PrivilegeManager.h */
  872. /* ns/nav-java/netscape/security/_jri/netscape_security_PrivilegeManager.c */
  873. JRI_PUBLIC_API(jref)
  874. netscape_security_PrivilegeManager_intersectPrincipalArray(JRIEnv* env, struct netscape_security_PrivilegeManager* self, jobjectArray a, jobjectArray b)
  875. {
  876.   return NULL;
  877. }
  878.  
  879. /* netscape_security_PrivilegeManager_isPrivilegeEnabled                            libmocha.so */
  880. /* ns/nav-java/netscape/security/_jri/netscape_security_PrivilegeManager.h */
  881. /* ns/nav-java/netscape/security/_jri/netscape_security_PrivilegeManager.c */
  882. JRI_PUBLIC_API(jbool)
  883. netscape_security_PrivilegeManager_isPrivilegeEnabled(JRIEnv* env, struct netscape_security_PrivilegeManager* self, struct netscape_security_Target *a, jint b)
  884. {
  885.   return (jbool)FALSE;
  886. }
  887.  
  888. /* netscape_security_PrivilegeManager_registerPrincipal                             libmocha.so */
  889. /* ns/nav-java/netscape/security/_jri/netscape_security_PrivilegeManager.h */
  890. /* ns/nav-java/netscape/security/_jri/netscape_security_PrivilegeManager.c */
  891. JRI_PUBLIC_API(void)
  892. netscape_security_PrivilegeManager_registerPrincipal(JRIEnv* env, struct netscape_security_PrivilegeManager* self, struct netscape_security_Principal *a)
  893. {
  894.   return;
  895. }
  896.  
  897. /* netscape_security_PrivilegeTable_get_1                                           libmocha.so */
  898. /* ns/nav-java/netscape/security/_jri/netscape_security_PrivilegeTable.h */
  899. /* ns/nav-java/netscape/security/_jri/netscape_security_PrivilegeTable.c */
  900. JRI_PUBLIC_API(struct netscape_security_Privilege *)
  901. netscape_security_PrivilegeTable_get_1(JRIEnv* env, struct netscape_security_PrivilegeTable* self, struct netscape_security_Target *a)
  902. {
  903.   return NULL;
  904. }
  905.  
  906. /* netscape_security_Privilege_getPermission                                        libmocha.so */
  907. /* ns/nav-java/netscape/security/_jri/netscape_security_Privilege.h */
  908. /* ns/nav-java/netscape/security/_jri/netscape_security_Privilege.c */
  909. JRI_PUBLIC_API(jint)
  910. netscape_security_Privilege_getPermission(JRIEnv* env, struct netscape_security_Privilege* self)
  911. {
  912.   /* Same as FORBIDDEN in Principal.java*/
  913.   return 0;
  914. }
  915.  
  916. /* netscape_security_Target_findTarget                                              libmocha.so */
  917. /* ns/nav-java/netscape/security/_jri/netscape_security_Target.h */
  918. /* ns/nav-java/netscape/security/_jri/netscape_security_Target.c */
  919. JRI_PUBLIC_API(struct netscape_security_Target *)
  920. netscape_security_Target_findTarget(JRIEnv* env, struct java_lang_Class* clazz, struct java_lang_String *a)
  921. {
  922.   return NULL;
  923. }
  924.  
  925. /* newobject                                                                        libjsj.so */
  926. /* sun-java */
  927.  
  928.  
  929. /* ns_createZigObject                                                               libmocha.so */
  930. /* ns/modules/applet/include/java.h */
  931. /* ns/modules/applet/src/appletStubs.c */
  932. JRI_PUBLIC_API(struct netscape_security_Zig *)
  933. ns_createZigObject(JRIEnv* env, void *zig)
  934. {
  935.   return NULL;
  936. }
  937.  
  938. /* set_netscape_plugin_Plugin_peer                                                  libplug.so */
  939. /* ns/modules/applet/src/_jri/netscape_plugin_Plugin.h */
  940. /* ns/modules/applet/src/_jri/netscape_plugin_Plugin.c */
  941. JRI_PUBLIC_API(void)
  942. set_netscape_plugin_Plugin_peer(JRIEnv* env, struct netscape_plugin_Plugin* obj, jint v) 
  943. {
  944.   return;
  945. }
  946.  
  947. /* set_netscape_plugin_Plugin_window                                                libplug.so */
  948. /* ns/modules/applet/src/_jri/netscape_plugin_Plugin.h */
  949. /* ns/modules/applet/src/_jri/netscape_plugin_Plugin.c */
  950. JRI_PUBLIC_API(void)
  951. set_netscape_plugin_Plugin_window(JRIEnv* env, struct netscape_plugin_Plugin* obj, struct netscape_javascript_JSObject * v) 
  952. {
  953.   return;
  954. }
  955.  
  956. /* sizearray                                                                        libjsj.so */
  957. /* sun-java */
  958.  
  959. /* use_netscape_plugin_Plugin                                                       libplug.so */
  960. /* ns/modules/applet/src/_jri/netscape_plugin_Plugin.h */
  961. /* ns/modules/applet/src/_jri/netscape_plugin_Plugin.c */
  962. JRI_PUBLIC_API(struct java_lang_Class*)
  963. use_netscape_plugin_Plugin(JRIEnv* env)
  964. {
  965.   return NULL;
  966. }
  967.  
  968. /* use_netscape_plugin_composer_Composer                                            liblay.so */
  969. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_Composer.h */
  970. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_Composer.c */
  971. JRI_PUBLIC_API(struct java_lang_Class*)
  972. use_netscape_plugin_composer_Composer(JRIEnv* env)
  973. {
  974.   return NULL;
  975. }
  976.  
  977. /* use_netscape_plugin_composer_MozillaCallback                                     liblay.so */
  978. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_MozillaCallback.h */
  979. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_MozillaCallback.c */
  980. JRI_PUBLIC_API(struct java_lang_Class*)
  981. use_netscape_plugin_composer_MozillaCallback(JRIEnv* env)
  982. {
  983.   return NULL;
  984. }
  985.  
  986. /* use_netscape_plugin_composer_PluginManager                                       liblay.so */
  987. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.h */
  988. /* ns/modules/edtplug/src/_jri/netscape_plugin_composer_PluginManager.c */
  989. JRI_PUBLIC_API(struct java_lang_Class*)
  990. use_netscape_plugin_composer_PluginManager(JRIEnv* env)
  991. {
  992.   return NULL;
  993. }
  994.  
  995.  
  996. /* zip_close                                                                        liblay.so */
  997. /* sun-java */
  998.  
  999. /* zip_get                                                                          liblay.so */
  1000. /* sun-java */
  1001.  
  1002. /* zip_open                                                                         liblay.so */
  1003. /* sun-java */
  1004.  
  1005. /* zip_stat                                                                         liblay.so */
  1006. /* sun-java */
  1007.  
  1008.  
  1009.