Changeset f1e629d for owl.h

Jul 6, 2003, 6:42:06 PM (20 years ago)
Erik Nygren <>
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
	New API for perl message formatting functions.
	        Legacy variables are still supported for owl::format_msg
		and owl::receive_msg, but these functions are now also
		passed an owl::Message object which contains methods
		for accessing the contents of the message.  See
		(and docs TBD) for the available methods.
		*** WARNING:  The exact API for owl::Message has
		*** not yet stabilized.
	Added "style" command for creating new styles.
	        Usage:  style <name> perl <function_name>
	Added support for "show styles".  Changed global style table
	        from list to dictionary.
	Changed AIM password prompt from "Password:" to "AIM Password:".
	Messages are reformatted after a window resize to allow styles
	        to take into account the width of the window.
	When perl throws an error, the message is put in the msgwin
	        if possible.
	Added perl functions for:
	        owl::getcurmsg() -- returns an owl::Message object for
		                    the active message
		                    in the current view.
	        owl::getnumcols() -- returns the column width of the window
		owl::zephyr_getrealm() -- returns the zephyr realm
	        owl::zephyr_getsender() -- returns the zephyr sender
	Made owl::COMMAND("foo"); be syntactic sugar for
	        owl::command("COMMAND foo");
		*** Is this a good or bad idea?
		*** This feature may be taken out before release.
	Added to contain perl code to be compiled into
	        the binary.  This is transformed into perlwrap.c by
	Renamed readconfig.c to perlconfig.c and changed variables accordingly.
	Minor bugfixes in cmd.c and commands.c
1 edited


  • owl.h

    r6873455 rf1e629d  
    2121static const char owl_h_fileIdent[] = "$Id$";
    23 #define OWL_VERSION         2.0.8-pre-1
    24 #define OWL_VERSION_STRING "2.0.8-pre-1"
     23#define OWL_VERSION         2.0.8-pre-2
     24#define OWL_VERSION_STRING "2.0.8-pre-2"
    2626#define OWL_DEBUG 0
    274274typedef struct _owl_style {
    275275  char *name;
     276  char *description;
    276277  int type;
    277278  char *perlfuncname;
    451452  owl_buddylist buddylist;  /* list of logged in AIM buddies */
    452453  owl_list messagequeue;    /* for queueing up aim and other messages */
    453   owl_list stylelist;       /* global list of available styles */
     454  owl_dict styledict;       /* global dictionary of available styles */
    454455  char *response;           /* response to the last question asked */
    455456  int havezephyr;
Note: See TracChangeset for help on using the changeset viewer.