diff options
author | Sergiu Ivanov <unlimitedscolobb@gmail.com> | 2008-10-31 21:35:21 +0200 |
---|---|---|
committer | Sergiu Ivanov <unlimitedscolobb@gmail.com> | 2008-10-31 21:35:21 +0200 |
commit | 2ae0853fb2def22b8554d2bc26db8bcf35413415 (patch) | |
tree | 245375cdfbd2c2c1bd9f339f3ab853729508f426 /filter.c | |
parent | 2ac5d9b16bd758906bbe5555c4f11801509ef2bf (diff) |
Made the filter accept the name of the translator as a command line argument
The filter can now be invoked as
filter <translator-to-filter-out>
Diffstat (limited to 'filter.c')
-rw-r--r-- | filter.c | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -69,6 +69,9 @@ mach_port_t target; /*The file to print debug messages to*/ FILE * filter_dbg; /*----------------------------------------------------------------------------*/ +/*The name of the translator to filter out*/ +char * target_name = NULL; +/*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*/ /*--------Functions-----------------------------------------------------------*/ @@ -635,13 +638,6 @@ netfs_S_file_get_translator_cntl return err; }/*netfs_S_file_get_translator_cntl*/ /*----------------------------------------------------------------------------*/ -int -netfs_demuxer - ( - mach_msg_header_t * ing, - mach_msg_header_t * outp - ); -/*----------------------------------------------------------------------------*/ /*Entry point*/ int main @@ -661,7 +657,9 @@ main /*Parse the command line arguments*/ argp_parse(&argp_startup, argc, argv, ARGP_IN_ORDER, 0, 0); - LOG_MSG("Command line arguments parsed."); + if(target_name == NULL) + ; + LOG_MSG("Command line arguments parsed. Target name: '%s'.", target_name); /*Try to create the root node*/ err = node_create_root(&netfs_root_node); |