Changeset 1b1cd2c for functions.c


Ignore:
Timestamp:
Mar 23, 2010, 5:23:43 PM (12 years ago)
Author:
Nelson Elhage <nelhage@ksplice.com>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
8dfb59c
Parents:
6b78afb
git-author:
Nelson Elhage <nelhage@mit.edu> (03/13/10 21:18:03)
git-committer:
Nelson Elhage <nelhage@ksplice.com> (03/23/10 17:23:43)
Message:
Editwin: Add a callback to destroy cbdata
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r6b78afb r1b1cd2c  
    277277}
    278278
    279 void owl_function_start_edit_win(const char *line, void (*callback)(owl_editwin *), void *data)
     279void owl_function_start_edit_win(const char *line, void (*callback)(owl_editwin *), void *data, void (*cleanup)(void *))
    280280{
    281281  owl_editwin *e;
     
    295295  owl_global_set_typwin_active(&g);
    296296
    297   owl_editwin_set_cbdata(owl_global_get_typwin(&g), data);
     297  owl_editwin_set_cbdata(owl_global_get_typwin(&g), data, cleanup);
    298298  owl_global_set_buffercallback(&g, callback);
    299299  owl_global_push_context(&g, OWL_CTX_EDITMULTI, e, "editmulti");
     
    312312                         noun);
    313313
    314   owl_function_start_edit_win(line, callback, NULL);
     314  owl_function_start_edit_win(line, callback, NULL, NULL);
    315315  owl_global_set_buffercommand(&g, line);
    316316}
Note: See TracChangeset for help on using the changeset viewer.