view 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
line wrap: on
line source

#include "thingy_impl.h"

NS_IMPL_ISUPPORTS1(_MYCLASS_, IThingy)

_MYCLASS_::_MYCLASS_()
{
  /* member initializers and constructor code */
}

_MYCLASS_::~_MYCLASS_()
{
  /* destructor code */
}

/* long add (in long a, in long b); */
NS_IMETHODIMP _MYCLASS_::Add(PRInt32 a, PRInt32 b, PRInt32 *_retval)
{
    *_retval = a + b + 1;
    return NS_OK;
}