lm_message.c
changeset 4 5770be2d5f3f
parent 0 84fdfb0344c9
child 6 90073cbb535d
equal deleted inserted replaced
3:4fd19a188509 4:5770be2d5f3f
    10 /// Module, representing individual message.
    10 /// Module, representing individual message.
    11 /// Message have a type and optionally a sub type.
    11 /// Message have a type and optionally a sub type.
    12 
    12 
    13 /// message type
    13 /// message type
    14 /// Message type (root tag type).
    14 /// Message type (root tag type).
    15 /// V: message, presence, iq, stream, stream error, stream features, auth, challenge, response, success, failure, proceed, starttls, unknown, stream:stream, stream:error, stream:feature
    15 /// G:
    16 const string2enum_t llm_message_type[] = {
    16 const string2enum_t llm_message_type[] = {
    17 	{ "message",         LM_MESSAGE_TYPE_MESSAGE         },
    17 	{ "message",         LM_MESSAGE_TYPE_MESSAGE         },
    18 	{ "presence",        LM_MESSAGE_TYPE_PRESENCE        },
    18 	{ "presence",        LM_MESSAGE_TYPE_PRESENCE        },
    19 	{ "iq",              LM_MESSAGE_TYPE_IQ              },
    19 	{ "iq",              LM_MESSAGE_TYPE_IQ              },
    20 	{ "stream",          LM_MESSAGE_TYPE_STREAM          },
    20 	{ "stream",          LM_MESSAGE_TYPE_STREAM          },
    34 	{ NULL,              0                               },
    34 	{ NULL,              0                               },
    35 };
    35 };
    36 
    36 
    37 /// message sub type
    37 /// message sub type
    38 /// Message subtype, not all combinations of type and subtype are possible.
    38 /// Message subtype, not all combinations of type and subtype are possible.
    39 /// V: not set, available, normal, chat, groupchat, headline, unavailable, probe, subscribe, unsubscribe, subscribed, unsubscribed, get, set, result, error, not_set
    39 /// G:
    40 const string2enum_t llm_message_sub_type[] = {
    40 const string2enum_t llm_message_sub_type[] = {
    41 	{ "not set",       LM_MESSAGE_SUB_TYPE_NOT_SET      },
    41 	{ "not set",       LM_MESSAGE_SUB_TYPE_NOT_SET      },
    42 	{ "available",     LM_MESSAGE_SUB_TYPE_AVAILABLE    },
    42 	{ "available",     LM_MESSAGE_SUB_TYPE_AVAILABLE    },
    43 	{ "normal",        LM_MESSAGE_SUB_TYPE_NORMAL       },
    43 	{ "normal",        LM_MESSAGE_SUB_TYPE_NORMAL       },
    44 	{ "chat",          LM_MESSAGE_SUB_TYPE_CHAT         },
    44 	{ "chat",          LM_MESSAGE_SUB_TYPE_CHAT         },