#873 closed defect (fixed)
C++ Plugin Support
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | BitlBee | Version: | 3.0.3 |
Keywords: | Cc: | ||
IRC client+version: | Client-independent | Operating System: | Linux |
OS version/distro: |
Description
Due to the use of new
as a variable name in the bee.h and irc.h header files, it is impossible to include them in a C++ source file. As there doesn't seem to be any rule against writing a plugin in C++, attached is a patch to fix this. I've also included wrapping the entire header file in an extern "C"
if a C++ compiler is being used, to make the headers easier to include in a C++ plugin.
Attachments (1)
Change History (4)
Changed at 2011-12-18T22:33:53Z by
Attachment: | cplusplus.patch added |
---|
comment:1 Changed at 2011-12-19T10:59:04Z by
May I ask what plugin you're writing? :-)
Indeed, there are no policies against C++ - it's all your own choice, of course.
comment:2 Changed at 2011-12-19T10:59:31Z by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 Changed at 2011-12-19T17:45:41Z by
Awesome. Thanks!
I miss being notified by pidgin when I receive new email, so I'm trying to write an email 'protocol' to replace what I'm missing. The nicest looking mail/IMAP library I've found happens to be C++ only. If I have any sort of success, I'll be posting it up on #809.
bzr merge directive