Modify

#873 closed defect (fixed)

C++ Plugin Support

Reported by: millerdevel@… 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)

cplusplus.patch (5.5 KB) - added by millerdevel@… at 2011-12-18T22:33:53Z.
bzr merge directive

Download all attachments as: .zip

Change History (4)

Changed at 2011-12-18T22:33:53Z by millerdevel@…

Attachment: cplusplus.patch added

bzr merge directive

comment:1 Changed at 2011-12-19T10:59:04Z by wilmer

changeset:devel,850.

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 wilmer

Resolution: fixed
Status: newclosed

comment:3 Changed at 2011-12-19T17:45:41Z by millerdevel@…

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.

Modify Ticket

Action
as closed The ticket will remain with no owner.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.