12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- /*
- * Copyright 2010, Pier Luigi Fiorini. All rights reserved.
- * Distributed under the terms of the GPL v2 License.
- *
- * Authors:
- * Pier Luigi Fiorini, pierluigi.fiorini@gmail.com
- */
- #include <BeBuild.h>
- #include "JabberProtocol.h"
- extern "C" _EXPORT ChatProtocol* protocol_at(int32 i);
- extern "C" _EXPORT int32 protocol_count();
- extern "C" _EXPORT const char* signature();
- extern "C" _EXPORT const char* friendly_signature();
- extern "C" _EXPORT uint32 version();
- ChatProtocol*
- protocol_at(int32 i)
- {
- if (i == 0)
- return (ChatProtocol*)new JabberProtocol();
- return NULL;
- }
- int32
- protocol_count()
- {
- return 1;
- }
- const char*
- signature()
- {
- return "xmpp";
- }
- const char*
- friendly_signature()
- {
- return "XMPP";
- }
- uint32
- version()
- {
- return APP_VERSION_1_ALPHA_1;
- }
|