ltInstanceData(const PGresult *res, PGEventProc proc);</PRE
><P>
      </P
></DD
></DL
></DIV
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="LIBPQ-EVENTS-EXAMPLE"
>31.13.4. Event Example</A
></H2
><P
>    Here is a skeleton example of managing private data associated with
    libpq connections and results.
   </P
><PRE
CLASS="PROGRAMLISTING"
>/* required header for libpq events (note: includes libpq-fe.h) */
#include &#60;libpq-events.h&#62;

/* The instanceData */
typedef struct
{
    int n;
    c