JabberMain.cpp 784 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright 2010, Pier Luigi Fiorini. All rights reserved.
  3. * Distributed under the terms of the GPL v2 License.
  4. *
  5. * Authors:
  6. * Pier Luigi Fiorini, pierluigi.fiorini@gmail.com
  7. */
  8. #include <BeBuild.h>
  9. #include "JabberProtocol.h"
  10. extern "C" _EXPORT ChatProtocol* protocol_at(int32 i);
  11. extern "C" _EXPORT int32 protocol_count();
  12. extern "C" _EXPORT const char* signature();
  13. extern "C" _EXPORT const char* friendly_signature();
  14. extern "C" _EXPORT uint32 version();
  15. ChatProtocol*
  16. protocol_at(int32 i)
  17. {
  18. if (i == 0)
  19. return (ChatProtocol*)new JabberProtocol();
  20. return NULL;
  21. }
  22. int32
  23. protocol_count()
  24. {
  25. return 1;
  26. }
  27. const char*
  28. signature()
  29. {
  30. return "xmpp";
  31. }
  32. const char*
  33. friendly_signature()
  34. {
  35. return "XMPP";
  36. }
  37. uint32
  38. version()
  39. {
  40. return APP_VERSION_1_ALPHA_1;
  41. }