source: vendor/current/pidl/README

Last change on this file was 988, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.3

File size: 2.8 KB
RevLine 
[414]1Introduction:
2=============
[988]3This directory contains the source code of the pidl (Perl IDL)
4compiler for Samba 4.
[414]5
6The main sources for pidl are available using Git as part of
[988]7the Samba source tree. Use:
[414]8git clone git://git.samba.org/samba.git
9
[988]10Pidl works by building a parse tree from a .pidl file (a simple
11dump of it's internal parse tree) or a .idl file
12(a file format mostly like the IDL file format midl uses).
13The IDL file parser is in idl.yp (a yacc file converted to
[414]14perl code by yapp)
15
16Standalone installation:
17========================
[988]18Run Makefile.PL to generate the Makefile.
[414]19
20Then run "make install" (as root) to install.
21
22Internals overview:
23===================
24
[988]25After a parse tree is present, pidl will call one of it's backends
26(which one depends on the options given on the command-line). Here is
27a list of current backends:
28
[414]29-- Generic --
30Parse::Pidl::Dump - Converts the parse tree back to an IDL file
31Parse::Pidl::Samba4::Header - Generates header file with data structures defined in IDL file
32Parse::Pidl::NDR - Generates intermediate datastructures for use by NDR parses/generators
33Parse::Pidl::ODL - Generates IDL structures from ODL structures for use in the NDR parser generator
34Parse::Pidl::Test - Utility functions for use in pidl's testsuite
35
36-- Samba NDR --
37Parse::Pidl::Samba4::NDR::Client - Generates client call functions in C using the NDR parser
38Parse::Pidl::Samba4::NDR::Parser - Generates pull/push functions for parsing NDR
39Parse::Pidl::Samba4::NDR::Server - Generates server side implementation in C
40Parse::Pidl::Samba4::TDR - Parser generator for the "Trivial Data Representation"
41Parse::Pidl::Samba4::Template - Generates stubs in C for server implementation
42Parse::Pidl::Samba4::Python - Generates bindings for Python
43
44-- Samba COM / DCOM --
45Parse::Pidl::Samba4::COM::Proxy - Generates proxy object for DCOM (client-side)
46Parse::Pidl::Samba4::COM::Stub - Generates stub call handler for DCOM (server-side)
47Parse::Pidl::Samba4::COM::Header - Generates headers for COM
48
49-- Wireshark --
50Parse::Pidl::Wireshark::NDR - Generates a parser for the Wireshark network sniffer
51Parse::Pidl::Wireshark::Conformance - Reads conformance files containing additional data for generating Wireshark parsers
52
53-- Utility modules --
54Parse::Pidl::Util - Misc utility functions used by *.pm and pidl.pl
55Parse::Pidl::Typelist - Utility functions for keeping track of known types and their representation in C
56
57Tips for hacking on pidl:
[988]58 - Inspect pidl's parse tree by using the --keep option and looking at the
59 generated .pidl file.
60 - The various backends have a lot in common, if you don't understand how one
61 implements something, look at the others.
[414]62 - See pidl(1) and the documentation on midl
[988]63 - See 'info bison' and yapp(1) for information on the file format of idl.yp
64 - Run the tests (all in tests/)
Note: See TracBrowser for help on using the repository browser.