![]() |
![]() |
![]() |
Buzztard Bt-Edit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include "bt-edit.h" #define BT_CHANGE_LOGGER_METHOD (name, name_len, regexp) gboolean bt_change_logger_change (const BtChangeLogger *self
,const gchar *data
); gint bt_change_logger_match_method (BtChangeLoggerMethods *change_logger_methods
,const gchar *data
,GMatchInfo **match_info
);
#define BT_CHANGE_LOGGER_METHOD(name,name_len,regexp)
Structure entry for a change log line parser array (array of BtChangeLoggerMethods).
|
name of method |
|
length of the string |
|
regular expression for parsing the parameter part |
gboolean bt_change_logger_change (const BtChangeLogger *self
,const gchar *data
);
Run the editor action pointed to by data
.
|
an object that implements logging changes |
|
serialised data of the action to apply |
Returns : |
TRUE for success. |
gint bt_change_logger_match_method (BtChangeLoggerMethods *change_logger_methods
,const gchar *data
,GMatchInfo **match_info
);
Matches commands registered in the change_logger_methods
against data
. If
a match is found the parameters are returned in match_info
.
|
array of change log methods |
|
the string to match agains |
|
resulting parameter on a positive match |
Returns : |
the command id from change_logger_methods or -1 for no match. Free
the match_info on positive matches. |