summaryrefslogtreecommitdiff
path: root/api/valid.h
diff options
context:
space:
mode:
authorAaron M. Ucko <ucko@debian.org>2005-04-29 15:34:56 +0000
committerAaron M. Ucko <ucko@debian.org>2005-04-29 15:34:56 +0000
commit402b112099aa816a02fd502b7f0261a99fe7126a (patch)
tree614fef3fedb6a920352586fc76cd1b0c828cffd2 /api/valid.h
parente0f3c07fe198b2ecfa46997942fd22a48655373e (diff)
Load /tmp/.../ncbi-tools6-6.1.20050429 into
ncbi-tools6/branches/upstream/current.
Diffstat (limited to 'api/valid.h')
-rw-r--r--api/valid.h33
1 files changed, 32 insertions, 1 deletions
diff --git a/api/valid.h b/api/valid.h
index f0046567..eb1cf038 100644
--- a/api/valid.h
+++ b/api/valid.h
@@ -29,7 +29,7 @@
*
* Version Creation Date: 1/1/94
*
-* $Revision: 6.16 $
+* $Revision: 6.19 $
*
* File Description: Sequence editing utilities
*
@@ -39,6 +39,15 @@
* ------- ---------- -----------------------------------------------------
*
* $Log: valid.h,v $
+* Revision 6.19 2004/12/23 20:50:51 kans
+* added context field to new callback
+*
+* Revision 6.18 2004/12/22 21:56:40 kans
+* CustValErr supports ValidErrorFunc callback for finer error reporting
+*
+* Revision 6.17 2004/12/20 22:57:16 kans
+* added verbosityLevel argument - to be used for finer control over error reporting by asn2val
+*
* Revision 6.16 2004/10/04 15:50:22 kans
* added vsp->justShowAccession for extremely terse output
*
@@ -153,6 +162,21 @@ extern "C" {
typedef void (*SpellCallBackFunc) (char * str);
typedef int (* SpellCheckFunc) (char *String, SpellCallBackFunc);
+/* callback type for finer error reporting */
+
+typedef void (LIBCALLBACK *ValidErrorFunc) (
+ ErrSev severity,
+ int errcode,
+ int subcode,
+ CharPtr accession,
+ CharPtr message,
+ CharPtr objtype,
+ CharPtr label,
+ CharPtr context,
+ CharPtr location,
+ CharPtr product,
+ Pointer userdata
+);
#define SET_DEPTH 20
@@ -202,6 +226,10 @@ typedef struct validstruct {
Boolean justShowAccession; /* extremely terse output with accession and error type */
Int2 validationLimit; /* limit validation to major classes in Valid1GatherProc */
TextFsaPtr sourceQualTags; /* for detecting structured qual tags in notes */
+ /* this section used for finer error reporting callback */
+ ValidErrorFunc errfunc;
+ Pointer userdata;
+ Boolean convertGiToAccn;
} ValidStruct, PNTR ValidStructPtr;
NLM_EXTERN Boolean ValidateSeqEntry PROTO((SeqEntryPtr sep, ValidStructPtr vsp));
@@ -211,6 +239,9 @@ NLM_EXTERN ValidStructPtr ValidStructFree (ValidStructPtr vsp);
NLM_EXTERN void SpellCallBack (char * str);
NLM_EXTERN Boolean IsNuclAcc (CharPtr name);
+NLM_EXTERN CharPtr GetValidCategoryName (int errcode);
+NLM_EXTERN CharPtr GetValidErrorName (int errcode, int subcode);
+
NLM_EXTERN CharPtr PNTR GetValidCountryList (void);
#ifdef __cplusplus