Confirmed users
656
edits
(New page: =Introduction= One of the first questions that people new to the Mozilla code base have when they start to look at backend source code is how to understand the difference between IDL file...) |
No edit summary |
||
| Line 39: | Line 39: | ||
== nsILocalFile.idl vs. nsILocalFile.h == | == nsILocalFile.idl vs. nsILocalFile.h == | ||
The [http://hg.mozilla.org/mozilla-central/file/0cd41f599080/xpcom/io/nsILocalFile.idl nsILocalFile.idl] file defines the interface, but not in a way useful to the C++ compiler. In order to use it in C++, we need a proper header file. This is where the [https://developer.mozilla.org/en/XPIDL/xpidl xpidl] compiler comes in. One of the [https://developer.mozilla.org/index.php?title=En/How_Mozilla%27s_build_system_works jobs of the build system] during the export phase is to create .h files from .idl. | |||
Since the build system generates nsILocalFile.h at compile time, you won't find it in the source tree, nor indexed in [http://mxr.mozilla.org MXR]. For discussion purposes, here it is: [[Education/Learning/UnderstandingXpcomFiles/nsILocalFile.h]]. | |||
still editing... | still editing... | ||