Changeset 0ff8fb57 for aim.c


Ignore:
Timestamp:
Jun 1, 2003, 1:46:49 PM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
31e48a3
Parents:
440ce01
Message:
More AIM work.
The auto-prototype building has been re-enabled as well.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • aim.c

    r440ce01 r0ff8fb57  
    2626};
    2727
     28/*
    2829static char *msgerrreasons[] = {
    2930        "Invalid error",
     
    5455};
    5556static int msgerrreasonslen = 25;
     57*/
    5658
    5759static void faimtest_debugcb(aim_session_t *sess, int level, const char *format, va_list va);
     
    168170{
    169171  aim_send_im(owl_global_get_aimsess(&g), to, AIM_IMFLAGS_ACK, msg);
     172
     173  /* I don't know how to check for an error yet */
     174  return(0);
    170175}
    171176
     
    180185int owl_aim_chat_sendmsg(char *chatroom, char *msg)
    181186{
     187  return(0);
    182188}
    183189
    184190int owl_aim_process_events() {
    185   int ret;
    186191  aim_session_t *aimsess;
    187192  aim_conn_t *waitingconn = NULL;
     
    241246  /* free(priv->buddyicon); */
    242247  /* exit(0); */
     248  return(0);
    243249}
    244250
     
    386392static int conninitdone_bos(aim_session_t *sess, aim_frame_t *fr, ...)
    387393{
    388   struct owlfaim_priv *priv = (struct owlfaim_priv *)sess->aux_data;
    389394  char buddies[128]; /* this is the new buddy list */
    390395  char profile[256]; /* this is the new profile */
     
    406411
    407412  /*aim_bos_setprofile(sess, fr->conn, profile, awaymsg, AIM_CAPS_BUDDYICON | AIM_CAPS_CHAT | AIM_CAPS_GETFILE | AIM_CAPS_SENDFILE | AIM_CAPS_IMIMAGE | AIM_CAPS_GAMES | AIM_CAPS_SAVESTOCKS | AIM_CAPS_SENDBUDDYLIST | AIM_CAPS_ICQ | AIM_CAPS_ICQUNKNOWN | AIM_CAPS_ICQRTF | AIM_CAPS_ICQSERVERRELAY | AIM_CAPS_TRILLIANCRYPT); */
    408   aim_bos_setprofile(sess, fr->conn, profile, awaymsg, AIM_CAPS_SENDBUDDYLIST | AIM_CAPS_CHAT | AIM_CAPS_ICQ | AIM_CAPS_ICQUNKNOWN | AIM_CAPS_ICQRTF | AIM_CAPS_ICQSERVERRELAY | AIM_CAPS_TRILLIANCRYPT);
     413  aim_bos_setprofile(sess, fr->conn, profile, awaymsg, AIM_CAPS_SENDBUDDYLIST | AIM_CAPS_CHAT );
    409414  aim_bos_reqbuddyrights(sess, fr->conn);
    410415
     
    473478int logout(aim_session_t *sess)
    474479{
    475   struct owlfaim_priv *priv = (struct owlfaim_priv *)sess->aux_data;
    476 
    477480  aim_session_kill(sess);
    478481
     
    674677static int faimtest_parse_motd(aim_session_t *sess, aim_frame_t *fr, ...)
    675678{
     679  char *msg;
     680  fu16_t id;
     681  va_list ap;
     682  /* static int codeslen = 5;
    676683  static char *codes[] = {
    677684    "Unknown",
     
    681688    "Top o' the world!"
    682689  };
    683   static int codeslen = 5;
    684   char *msg;
    685   fu16_t id;
    686   va_list ap;
    687  
     690  */
     691
    688692  return 1;
    689693 
     
    14621466static int faimtest_parse_misses(aim_session_t *sess, aim_frame_t *fr, ...)
    14631467{
     1468  /*
    14641469  static char *missedreasons[] = {
    14651470    "Invalid (0)",
     
    14691474    "Evil Receiver"
    14701475  };
    1471   static int missedreasonslen = 5;
     1476  static int missedreasonslen = 5; */
    14721477 
    14731478  va_list ap;
     
    15081513static int faimtest_parse_ratechange(aim_session_t *sess, aim_frame_t *fr, ...)
    15091514{
     1515  /*
    15101516  static char *codes[5] = {
    15111517    "invalid",
     
    15151521    "limit cleared"
    15161522  };
     1523  */
    15171524  va_list ap;
    15181525  fu16_t code, rateclass;
     
    15871594  va_list ap;
    15881595  char *address, *SNs;
    1589   int i, num;
     1596  int num;
     1597  /* int i; */
    15901598 
    15911599  va_start(ap, fr);
     
    17481756  va_list ap;
    17491757  aim_userinfo_t *userinfo;
    1750   int count, i;
     1758  int count;
     1759  /* int i; */
    17511760 
    17521761  va_start(ap, fr);
     
    17651774static int faimtest_chat_leave(aim_session_t *sess, aim_frame_t *fr, ...)
    17661775{
    1767   va_list ap;
    17681776  aim_userinfo_t *userinfo;
    1769   int count , i;
     1777  va_list ap;
     1778  int count;
     1779  /* int i; */
     1780
    17701781 
    17711782  va_start(ap, fr);
     
    17891800  struct aim_chat_roominfo *roominfo;
    17901801  char *roomname;
    1791   int usercount, i;
     1802  int usercount;
    17921803  char *roomdesc;
    17931804  fu16_t flags, unknown_d2, unknown_d5, maxmsglen, maxvisiblemsglen;
    17941805  fu32_t creationtime;
    17951806  const char *croomname;
     1807  /* int i; */
    17961808 
    17971809  croomname = aim_chat_getname(fr->conn);
     
    18751887    int maxrooms;
    18761888    struct aim_chat_exchangeinfo *exchanges;
    1877     int exchangecount, i;
     1889    int exchangecount;
     1890    /* int i; */
    18781891   
    18791892    maxrooms = va_arg(ap, int);
Note: See TracChangeset for help on using the changeset viewer.