Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Unified Diff: src/trusted/validator/ncvalidate.h

Issue 10070010: validator_ragel: Link into TCB, use under env var (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: . Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/trusted/validator/ncvalidate.h
diff --git a/src/trusted/validator/ncvalidate.h b/src/trusted/validator/ncvalidate.h
index 104ecfc35fe85158c211bfb8d05fd02392b46c4e..ee6ffb2135fec34ee802c911bdce01dffc3d51fa 100644
--- a/src/trusted/validator/ncvalidate.h
+++ b/src/trusted/validator/ncvalidate.h
@@ -98,6 +98,23 @@ extern NaClValidationStatus NACL_SUBARCH_NAME(ApplyValidator,
const NaClCPUFeatures *cpu_features,
struct NaClValidationCache *cache);
+/* Applies the DFA-based validator as in the ApplyValidator case described
+ * above. The interface of this new validator must remain the same as of the
+ * ApplyValidator. Less arguments will be ignored as the new validator
+ * implements features, such as stubout mode.
+ */
+extern NaClValidationStatus NACL_SUBARCH_NAME(ApplyDfaValidator,
Nick Bray 2012/04/19 23:11:08 Don't specify this interface into ncvalidate, just
pasko-google - do not use 2012/04/20 14:30:38 I did not want to include directly anything from u
+ NACL_TARGET_ARCH,
+ NACL_TARGET_SUBARCH)(
+ enum NaClSBKind sb_kind,
+ uintptr_t guest_addr,
+ uint8_t *data,
+ size_t size,
+ int stubout_mode,
+ int readonly_text,
+ const NaClCPUFeatures *cpu_features,
+ struct NaClValidationCache *cache);
+
/* Applies the validator, as used in a command-line tool to report issues.
* Note: This is intentionally separated from ApplyValidator, since it need
* not be performance critical.

Powered by Google App Engine
This is Rietveld 408576698