Ignore:
Timestamp:
2015-04-10T17:10:40Z (9 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
d550358
Parents:
11e42dc
git-author:
dequis <dx@…> (09-03-15 10:14:58)
git-committer:
dequis <dx@…> (10-04-15 17:10:40)
Message:

msn: implement PUT /user to set status as online

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.h

    r11e42dc rd80822c  
    6767#define MSN_CAP2        0x0000
    6868
    69 #define MSN_MESSAGE_HEADERS \
     69#define MSN_BASE_HEADERS \
    7070        "Routing: 1.0\r\n" \
    7171        "To: 1:%s\r\n" \
     
    7373        "\r\n" \
    7474        "Reliability: 1.0\r\n" \
    75         "\r\n" \
     75        "\r\n"
     76
     77#define MSN_MESSAGE_HEADERS MSN_BASE_HEADERS \
    7678        "Messaging: 2.0\r\n" \
    7779        "Message-Type: Text\r\n" \
     
    8183        "\r\n" \
    8284        "%s"
     85
     86#define MSN_PUT_HEADERS MSN_BASE_HEADERS \
     87        "Publication: 1.0\r\n" \
     88        "Uri: %s\r\n" \
     89        "Content-Type: %s\r\n" \
     90        "Content-Length: %zd\r\n" \
     91        "\r\n" \
     92        "%s"
     93
     94#define MSN_PUT_USER_BODY \
     95        "<user>" \
     96        "<s n=\"PE\"><UserTileLocation></UserTileLocation><FriendlyName>%s</FriendlyName><PSM>%s</PSM><DDP></DDP>" \
     97        "<Scene></Scene><ASN></ASN><ColorScheme>-3</ColorScheme><BDG></BDG><RUM>%s</RUM><RUL></RUL><RLT>0</RLT>" \
     98        "<RID></RID><SUL></SUL><MachineGuid>%s</MachineGuid></s>" \
     99        "<s n=\"IM\"><Status>%s</Status><CurrentMedia></CurrentMedia></s>" \
     100        "<sep n=\"PD\"><ClientType>1</ClientType><EpName>%s</EpName><Idle>%s</Idle><State>%s</State></sep>" \
     101        "<sep n=\"PE\"><VER>BitlBee:" BITLBEE_VERSION "</VER><TYP>1</TYP><Capabilities>%d:%d</Capabilities></sep>" \
     102        "<sep n=\"IM\"><Capabilities>%d:%d</Capabilities></sep>" \
     103        "</user>"
    83104
    84105#define MSN_TYPING_HEADERS "MIME-Version: 1.0\r\n" \
Note: See TracChangeset for help on using the changeset viewer.