view mcabber/src/buddies.h @ 47:7259a61e1a4b

[/trunk] Changeset 63 by mikael * Add commands.[ch] files, to deal with command lines. Move sendmessage() to commands.c * Update Makefile accordingly. * Create a scr_WriteMessage() function, layer between UI and the scr_WriteIncomingMessage() / scr_WriteOutgoingMessage(). (The last one is a new function)
author mikael
date Wed, 06 Apr 2005 10:07:59 +0000
parents a8ceaa3005fd
children 85bbc6ed3796
line wrap: on
line source

#ifndef __BUDDIES_H__
#define __BUDDIES_H__ 1

#include <ncurses.h>
#include "jabglue.h"
#include "list.h"

/* Definici�n de tipos */
typedef struct _buddy_entry_t {
  char *jid;
  char *name;
  char *group;
  char *resource;
  int flags;
  struct list_head list;
} buddy_entry_t;

void bud_DrawRoster(WINDOW * win);
void bud_RosterDown(void);
void bud_RosterUp(void);
void bud_TerminateBuddies(void);
int  bud_BuddyCount(void);
void bud_SetBuddyStatus(char *jidfrom, enum imstatus status);
buddy_entry_t *bud_SelectedInfo(void);

buddy_entry_t *bud_AddBuddy(const char *bjid, const char *bname);
void           bud_DeleteBuddy(buddy_entry_t *buddy);

#endif