Red Hat NETSCAPE ENTERPRISE SERVER 6.1 - NSAPI PROGRAMMER GUIDE Manuel d'utilisateur Page 125

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 148
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 124
Defining Customized Server-Parsed HTML Tags
Chapter 3 Server-Parsed HTML Tags 125
Any of these arguments can return NULL except for the tag and execFn.
Load the New Tag into the Server
After creating the shared library that defines the new tag, you load the library into
the Enterprise Server in the usual way for NSAPI plugins. That is, add the
following directives to the configuration file
magnus.conf:
1. Add an Init directive whose fn parameter is load-modules and whose shlib
parameter is the shared library to load. For example, if you compiled your tag
into the shared object install_dir
/hello.so,itwouldbe:
Init funcs="mytag,mytag_init" shlib="installdir/hello.so"
fn="load-modules"
2.
Add another Init directive whosefn parameter is the initialization function in
the shared librarythat uses
shtml_add_tag to register the tag. For example:
Init fn="mytag_init"
Vue de la page 124
1 2 ... 120 121 122 123 124 125 126 127 128 129 130 ... 147 148

Commentaires sur ces manuels

Pas de commentaire