Mercurial > simple_xpcom_firefox_extension
annotate my_xpcom_component/thingy_impl.cpp @ 0:439a78563622 default tip
Origination.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Fri, 08 Feb 2008 14:02:26 -0600 |
parents | |
children |
rev | line source |
---|---|
0 | 1 #include "thingy_impl.h" |
2 | |
3 NS_IMPL_ISUPPORTS1(_MYCLASS_, IThingy) | |
4 | |
5 _MYCLASS_::_MYCLASS_() | |
6 { | |
7 /* member initializers and constructor code */ | |
8 } | |
9 | |
10 _MYCLASS_::~_MYCLASS_() | |
11 { | |
12 /* destructor code */ | |
13 } | |
14 | |
15 /* long add (in long a, in long b); */ | |
16 NS_IMETHODIMP _MYCLASS_::Add(PRInt32 a, PRInt32 b, PRInt32 *_retval) | |
17 { | |
18 *_retval = a + b + 1; | |
19 return NS_OK; | |
20 } |