filter.h 559 B

1234567891011121314151617181920212223
  1. /*
  2. * ZMap Copyright 2013 Regents of the University of Michigan
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. * use this file except in compliance with the License. You may obtain a copy
  6. * of the License at http://www.apache.org/licenses/LICENSE-2.0
  7. */
  8. #ifndef ZMAP_FILTER_H
  9. #define ZMAP_FILTER_H
  10. #include "expression.h"
  11. #include "fieldset.h"
  12. struct output_filter {
  13. node_t *expression;
  14. };
  15. int parse_filter_string(char *filter);
  16. int validate_filter(node_t *root, fielddefset_t *fields);
  17. #endif /* ZMAP_FILTER_H */