IPDL/Five minute example: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
This page walks you through the steps of creating an IPDL protocol and writing the C++ code that implements the required interfaces.  This guide walks you through the steps taken to implement the testing code in <code>ipc/test-harness</code>. You are encouraged to follow this guide step-by-step and change the code in <code>ipc/test-harness</code> as you follow along.
This page walks you through the steps of creating an IPDL protocol and writing the C++ code that implements the required interfaces.  It is intended to be a practical complement to the more abstract [[IPDL/Getting started guide]].
 
== Broadly understand IPDL's C++ environment ==
 
== Write the IPDL "Hello, world" protocol ==
 
== Run the IPDL compiler ==
 
== Implement your protocol's generated C++ interface ==
 
== Put it all together ==
 
== Write a slightly less trivial protocol ==
 
<!--


== Write the IPDL specification ==
== Write the IPDL specification ==
Line 312: Line 326:


If you followed the path to creating a standalone binary, you can run the test harness by executing <code>$objdir/dist/bin/ipctestharness</code>.
If you followed the path to creating a standalone binary, you can run the test harness by executing <code>$objdir/dist/bin/ipctestharness</code>.
-->

Revision as of 23:46, 17 July 2009

This page walks you through the steps of creating an IPDL protocol and writing the C++ code that implements the required interfaces. It is intended to be a practical complement to the more abstract IPDL/Getting started guide.

Broadly understand IPDL's C++ environment

Write the IPDL "Hello, world" protocol

Run the IPDL compiler

Implement your protocol's generated C++ interface

Put it all together

Write a slightly less trivial protocol