X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=doc%2Fusage.html;fp=doc%2Fusage.html;h=cd050df414a0f2e707d0e8b9a71fd0999318046f;hb=6d7fe09b0eab9dd8ea3c209d59589bea6514a48c;hp=786cf1f1694714bb02dfe73eaf6bf5ec7e564767;hpb=00537961a05301e245a002110ed9d3da0e0ee2ca;p=gedcom-parse.git diff --git a/doc/usage.html b/doc/usage.html index 786cf1f..cd050df 100644 --- a/doc/usage.html +++ b/doc/usage.html @@ -1,9 +1,7 @@
my_message_handler
is the callback
- that will be called for errors (type=ERROR
), warnings (
- type=WARNING
) and messages (type=MESSAGE
). The
+ that will be called for errors (type=ERROR
), warnings (type=WARNING
) and messages (type=MESSAGE
). The
callback must have the signature as in the example. For errors, the
msg
passed to the callback will have the format:gedcom-tags.h
yourself).struct
that will contain the information for the
+ e.g. pass a struct
(or an object in a C++ application) that will contain the information for the
header. In the end callback, the application could then e.g. do some
finalizing operations on the struct
to put it in its database.struct
that
+ that the context of the parent line (here e.g. the struct
that
describes the header) is passed to this start callback. The callback
-itself returns here the same context, but this can be its own context object
+itself returns here in this example the same context, but this can be its own context object
of course. The end callback is called with both the context of the
-parent and the context of itself, which will be the same in the example.
+parent and the context of itself, which in this example will be the same.
Again, the list of identifiers to use as a first argument for the
subscription function are detailed in the
interface details .Gedcom_val
type is meant to be an opaque type. The
only thing that needs to be known about it is that it can contain specific
@@ -291,9 +288,8 @@ level number (the initial number of the line in the GEDCOM file), the tag
Gedcom_val
argument of the end callback
is currently not used. It is there for future enhancements.Gedcom_val
argument in
-the start callback for records. This argument is currently a string
-value giving the pointer in string form.Gedcom_val
arguments in
+the start callback for records. The first one (xref
) contains the xref_value
corresponding to the cross-reference (or NULL
if there isn't one), the second one (parsed_value
) contains the value that is parsed from the raw_value
. See the interface details.parent
could be of different
types, depending on the context).NULL
. This is e.g. the case if none of the "upper" tags has been subscribed upon.