B::Hooks::OP::PPAddr man page on Pidora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Pidora logo
[printable version]

B::Hooks::OP::PPAddr(3User Contributed Perl DocumentatiB::Hooks::OP::PPAddr(3)

NAME
       B::Hooks::OP::PPAddr - Hook into opcode execution

SYNOPSIS
	   #include "hook_op_check.h"
	   #include "hook_op_ppaddr.h"

	   STATIC OP *
	   execute_entereval (pTHX_ OP *op, void *user_data) {
	       ...
	   }

	   STATIC OP *
	   check_entereval (pTHX_ OP *op, void *user_data) {
	       hook_op_ppaddr (op, execute_entereval, NULL);
	   }

	   hook_op_check (OP_ENTEREVAL, check_entereval, NULL);

DESCRIPTION
       This module provides a c api for XS modules to hook into the execution
       of perl opcodes.

       ExtUtils::Depends is used to export all functions for other XS modules
       to use. Include the following in your Makefile.PL:

	   my $pkg = ExtUtils::Depends->new('Your::XSModule', 'B::Hooks::OP::PPAddr');
	   WriteMakefile(
	       ... # your normal makefile flags
	       $pkg->get_makefile_vars,
	   );

       Your XS module can now include "hook_op_ppaddr.h".

TYPES
   typedef OP *(*hook_op_ppaddr_cb_t) (pTHX_ OP *, void *user_data)
       Type that callbacks need to implement.

FUNCTIONS
   void hook_op_ppaddr (OP *op, hook_op_ppaddr_cb_t cb, void *user_data)
       Replace the function to execute "op" with the callback "cb".
       "user_data" will be passed to the callback as the last argument.

   void hook_op_ppaddr_around (OP *op, hook_op_ppaddr_cb_t before,
       hook_op_ppaddr_cb_t after, void *user_data)
       Register the callbacks "before" and "after" to be called before and
       after the execution of "op". "user_data" will be passed to the callback
       as the last argument.

SEE ALSO
       B::Hooks::OP::Check

AUTHOR
       Florian Ragwitz <rafl@debian.org>

COPYRIGHT AND LICENSE
       Copyright (c) 2008 Florian Ragwitz

       This module is free software.

       You may distribute this code under the same terms as Perl itself.

perl v5.14.1			  2009-07-28	       B::Hooks::OP::PPAddr(3)
[top]

List of man pages available for Pidora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net