Changeset bd3f232 for owl.h


Ignore:
Timestamp:
Jun 10, 2003, 3:14:59 PM (18 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
f14a7ee
Parents:
6e05655
Message:
Styles implemented
It's still a little buggy ... if a format_msg(); is used in perl admin
  messages (or maybe just the first admin message) are not formatted.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.h

    r6e05655 rbd3f232  
    1414static const char owl_h_fileIdent[] = "$Id$";
    1515
    16 #define OWL_VERSION         2.0.3
    17 #define OWL_VERSION_STRING "2.0.3"
     16#define OWL_VERSION         2.0.4-pre-1
     17#define OWL_VERSION_STRING "2.0.4-pre-1"
    1818
    1919#define OWL_DEBUG 0
    2020#define OWL_DEBUG_FILE "/var/tmp/owldebug"
    2121
    22 #define OWL_CONFIG_DIR "/.owl"           /* this is relative to the user's home directory */
     22#define OWL_CONFIG_DIR "/.owl"             /* this is relative to the user's home directory */
    2323#define OWL_STARTUP_FILE "/.owl/startup"   /* this is relative to the user's home directory */
    2424
     
    6464#define OWL_SCROLLMODE_PAGED       4
    6565#define OWL_SCROLLMODE_PAGEDCENTER 5
     66
     67#define OWL_STYLE_TYPE_INTERNAL  0
     68#define OWL_STYLE_TYPE_PERL      1
    6669
    6770#define OWL_TAB               3  /* This *HAS* to be the size of TABSTR below */
     
    245248  int direction;
    246249  ZNotice_t notice;
    247   owl_fmtext fmtext;
     250  owl_fmtext fmtext;              /* this is now only a CACHED copy */
     251  int invalid_format;             /* indicates whether fmtext needs to be regenerated */
    248252  int delete;
    249253  char hostname[MAXHOSTNAMELEN+1];
     
    252256  char *zwriteline;
    253257} owl_message;
     258
     259typedef struct _owl_style {
     260  char *name;
     261  int type;
     262  char *perlfuncname;
     263  void (*formatfunc) (owl_fmtext *fm, owl_message *m);
     264} owl_style;
    254265
    255266typedef struct _owl_mainwin {
     
    415426  owl_timer aim_noop_timer;
    416427  owl_timer aim_ignorelogin_timer;
    417   int aim_loggedin;
    418   char *aim_screenname;
    419   owl_buddylist buddylist;
    420   owl_list messagequeue; /* for queueing up aim and other messages */
     428  int aim_loggedin;         /* true if currently logged into AIM */
     429  char *aim_screenname;     /* currently logged in AIM screen name */
     430  owl_buddylist buddylist;  /* list of logged in AIM buddies */
     431  owl_list messagequeue;    /* for queueing up aim and other messages */
     432  owl_list stylelist;       /* global list of available styles */
    421433} owl_global;
    422434
Note: See TracChangeset for help on using the changeset viewer.