Changeset cf83b7a for global.c


Ignore:
Timestamp:
Jun 30, 2003, 6:12:40 PM (17 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:
453bd70
Parents:
c9334b1
Message:
Started adding code to do question/response stuff
File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.c

    r591e6aa7 rcf83b7a  
    9696  owl_timer_create_countdown(&(g->aim_ignorelogin_timer), 0);
    9797  owl_buddylist_init(&(g->buddylist));
     98  g->response=NULL;
    9899}
    99100
     
    762763}
    763764
    764 void owl_global_add_style(owl_global *g, owl_style *s) {
     765void owl_global_add_style(owl_global *g, owl_style *s)
     766{
    765767  owl_list_append_element(&(g->stylelist), s);
    766768}
     769
     770char *owl_global_get_response(owl_global *g)
     771{
     772  if (g->response==NULL) return("");
     773  return(g->response);
     774}
     775
     776void owl_global_set_response(owl_global *g, char *resp)
     777{
     778  if (g->response) owl_free(g->response);
     779  g->response=resp;
     780}
Note: See TracChangeset for help on using the changeset viewer.