update compat
[lttv.git] / tags / LinuxTraceToolkitViewer-0.10.0-pre-115102007 / doc / developer / developer_guide / html / x72.html
CommitLineData
7cb02901 1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
2<HTML
3><HEAD
4><TITLE
5>The static part of a module</TITLE
6><META
7NAME="GENERATOR"
8CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
9REL="HOME"
10TITLE="Linux Trace Toolkit Viewer Developer Guide"
11HREF="index.html"><LINK
12REL="UP"
13TITLE="Linux Trace Toolkit Viewer Graphical Module Tutorial"
14HREF="c67.html"><LINK
15REL="PREVIOUS"
16TITLE="Linux Trace Toolkit Viewer Graphical Module Tutorial"
17HREF="c67.html"><LINK
18REL="NEXT"
19TITLE="The dynamic part of a module : the viewer"
20HREF="x77.html"></HEAD
21><BODY
22CLASS="sect1"
23BGCOLOR="#FFFFFF"
24TEXT="#000000"
25LINK="#0000FF"
26VLINK="#840084"
27ALINK="#0000FF"
28><DIV
29CLASS="NAVHEADER"
30><TABLE
31SUMMARY="Header navigation table"
32WIDTH="100%"
33BORDER="0"
34CELLPADDING="0"
35CELLSPACING="0"
36><TR
37><TH
38COLSPAN="3"
39ALIGN="center"
40>Linux Trace Toolkit Viewer Developer Guide</TH
41></TR
42><TR
43><TD
44WIDTH="10%"
45ALIGN="left"
46VALIGN="bottom"
47><A
48HREF="c67.html"
49ACCESSKEY="P"
50>Prev</A
51></TD
52><TD
53WIDTH="80%"
54ALIGN="center"
55VALIGN="bottom"
56>Chapter 3. Linux Trace Toolkit Viewer Graphical Module Tutorial</TD
57><TD
58WIDTH="10%"
59ALIGN="right"
60VALIGN="bottom"
61><A
62HREF="x77.html"
63ACCESSKEY="N"
64>Next</A
65></TD
66></TR
67></TABLE
68><HR
69ALIGN="LEFT"
70WIDTH="100%"></DIV
71><DIV
72CLASS="sect1"
73><H1
74CLASS="sect1"
75><A
76NAME="AEN72"
77>3.2. The static part of a module</A
78></H1
79><P
80>&#13;A module must have a static part to be able to get loaded just like a text
81module. Now, let's see the differences. The graphical module depends on the
82"lttvwindow" module. See module.c from the control flow viewer for an example.
83</P
84><P
85>&#13;The init() and destroy() functions must register functions that can be called by
86user interaction to instanciate the viewers. That's the goal of
87lttvwindow_register_constructor() and lttvwindow_unregister_constructor() :
88they register a function with a menu entry and an icon. The main window will
89shown them in its interface and call the function when the button or menu item
90is selected. This hook function must receive a pointer to a "Tab" object in
91parameter.
92</P
93><P
94>&#13;Also note the presence of the destroy_walk() method. It is called when the
95module is unloaded : it must destroy all the instances of the viewers from the
96module.
97</P
98></DIV
99><DIV
100CLASS="NAVFOOTER"
101><HR
102ALIGN="LEFT"
103WIDTH="100%"><TABLE
104SUMMARY="Footer navigation table"
105WIDTH="100%"
106BORDER="0"
107CELLPADDING="0"
108CELLSPACING="0"
109><TR
110><TD
111WIDTH="33%"
112ALIGN="left"
113VALIGN="top"
114><A
115HREF="c67.html"
116ACCESSKEY="P"
117>Prev</A
118></TD
119><TD
120WIDTH="34%"
121ALIGN="center"
122VALIGN="top"
123><A
124HREF="index.html"
125ACCESSKEY="H"
126>Home</A
127></TD
128><TD
129WIDTH="33%"
130ALIGN="right"
131VALIGN="top"
132><A
133HREF="x77.html"
134ACCESSKEY="N"
135>Next</A
136></TD
137></TR
138><TR
139><TD
140WIDTH="33%"
141ALIGN="left"
142VALIGN="top"
143>Linux Trace Toolkit Viewer Graphical Module Tutorial</TD
144><TD
145WIDTH="34%"
146ALIGN="center"
147VALIGN="top"
148><A
149HREF="c67.html"
150ACCESSKEY="U"
151>Up</A
152></TD
153><TD
154WIDTH="33%"
155ALIGN="right"
156VALIGN="top"
157>The dynamic part of a module : the viewer</TD
158></TR
159></TABLE
160></DIV
161></BODY
162></HTML
163>
This page took 0.052404 seconds and 4 git commands to generate.