IRC Log Viewer » #firebreath » 2012-03-09

IRC Nick Time (GMT-7) Message
reichi 01:03 sorry for the rejoin spam yesterday
the provider of my server got DDoSed for about 10h
with 30gb/s
jlips2003 14:03 Hi, I just started using firebreath last night, so needless to say I don't have a clue yet. I'm trying to follow what another person did in the forums:http://forum.firebreath.org/topic/52/, but I think a few pieces are missing and therefore I get errors on make. This seems like a great example of where to make a couple simple edits and build it and test it. I couldn't find any other simple examples like it elsewhere on the si
linearray 14:03 start out playing with the existing methods
does it compile when you change nothing at all?
jlips2003 15:03 yes, it does compile when I change nothing at all.
what are the existing methods? Where are they listed?
linearray 15:03 in YourPluginAPI.h
in the constructor: registerMethod
http://www.firebreath.org/display/documentation/JSAPI+Methods#JSAPIMethods-AddingaNewMethod
all you really need to do is create a new method in C++, then call registerMethod(.)
jlips2003 15:03 OK, like I said: clueless. I think I get it now. I'll play around with the existing methods first, then try creating a new method. Thanks for getting me back on track.
taxilian 15:03 jlips2003: read the getting started pages; at least skim all of them, so you know what is there. Then look at the code. you'll figure it out
linearray 16:03 any progress on http://jira.firebreath.org/browse/FIREBREATH-145 ?
FireBreathBot 16:03 FIREBREATH-145: Summary: FireBreath as shared library
FIREBREATH-145: Assigned To: richard
FIREBREATH-145: Priority: Major, Status: Open, http://jira.firebreath.org/browse/FIREBREATH-145
jlips2003 16:03 The third code block looks like this: test2API::test2API() : FB::JSAPIAuto("test2API object") { registerMethod("add", make_method(this, &test2API::add)); registerMethod("subtract", make_method(this, &test2API::subtract)); registerMethod("multiply", make_method(this, &test2API::multiply)); registerMethod("divide", make_method(this, &test2API::divide)); }
I used the same syntax provided in the link, just changed my project name. What am I missing?
taxilian 17:03 linearray: I still don't see any significant benefit to FIREBREATH-145, but whenever I have time to work on FireBreath 2.0 I'll be making some progress towards that goal
FireBreathBot 17:03 FIREBREATH-145: Summary: FireBreath as shared library
FIREBREATH-145: Assigned To: richard
FIREBREATH-145: Priority: Major, Status: Open, http://jira.firebreath.org/browse/FIREBREATH-145
taxilian 17:03 !findfile DllMain.cpp
!findfile dllmain.cpp
FireBreathBot 17:03 Found 1 matching file(s) in the master branch. First 1 are:
src/PluginAuto/Win/dllmain.cpp http://goo.gl/y5syi
Found 1 matching file(s) in the master branch. First 1 are:
src/PluginAuto/Win/dllmain.cpp http://goo.gl/y5syi
jlips2003 18:03 I've tried all kinds of variations of the constructor they seem to result in one of two errors on make, either:
error: prototype for ‘test2API::test2API()’ does not match any in class ‘test2API’
or:
error: redefinition of ‘test2API::test2API(const test2Ptr&, const FB::BrowserHostPtr&)’
Could someone give me a hint as to what I am doing wrong. I started with a fresh project created with fbgen.py and followed the directions here:
http://www.firebreath.org/display/documentation/JSAPI+Methods#JSAPIMethods-AddingaNewMethod