Education/Learning/UnderstandingXpcomFiles: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 41: Line 41:
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.
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]].
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 nsILocalFile.h]].




still editing...
still editing...
Confirmed users
656

edits

Navigation menu