purple.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _PURPLE_H
00021 #define _PURPLE_H
00022
00023 #include <libpurple/status.h>
00024
00025 enum purple_cmd_type {
00026 PURPLE_MESSAGE_CMD = 1,
00027 PURPLE_PUBLISH_CMD = 2,
00028 PURPLE_SUBSCRIBE_CMD = 3
00029 };
00030
00031 enum purple_publish_basic {
00032 PURPLE_BASIC_OPEN = 1,
00033 PURPLE_BASIC_CLOSED = 2
00034 };
00035
00036 enum purple_publish_activity {
00037 PURPLE_ACTIVITY_AVAILABLE = 1,
00038 PURPLE_ACTIVITY_BUSY = 2,
00039 PURPLE_ACTIVITY_AWAY = 3,
00040 };
00041
00042 struct purple_message {
00043 char *from, *to, *body, *id;
00044 };
00045
00046 struct purple_publish {
00047 char *from, *id;
00048 enum purple_publish_basic basic;
00049 PurpleStatusPrimitive primitive;
00050 char *note;
00051 };
00052
00053 struct purple_subscribe {
00054 char *from, *to;
00055 int expires;
00056
00057 };
00058
00059 struct purple_cmd {
00060 enum purple_cmd_type type;
00061 union {
00062 struct purple_message message;
00063 struct purple_publish publish;
00064 struct purple_subscribe subscribe;
00065 };
00066 };
00067
00068 #endif