summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera2014-02-27 14:41:43 +0000
committerAlvaro Herrera2014-02-27 14:41:43 +0000
commit4333eee82d399df8f724faa331827dcfae1fdf28 (patch)
tree3b9a284d50ef8e621730c1aa6b7a914f8aeda026
parent6bfa88acd3df830a5f7e8677c13512b1b50ae813 (diff)
doc: bgw_main takes a Datum argument, not void *.
Per report from James Harper.
-rw-r--r--doc/src/sgml/bgworker.sgml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/sgml/bgworker.sgml b/doc/src/sgml/bgworker.sgml
index 6996d73186..fd32d6cb0c 100644
--- a/doc/src/sgml/bgworker.sgml
+++ b/doc/src/sgml/bgworker.sgml
@@ -47,7 +47,7 @@
<para>
The structure <structname>BackgroundWorker</structname> is defined thus:
<programlisting>
-typedef void (*bgworker_main_type)(void *main_arg);
+typedef void (*bgworker_main_type)(Datum main_arg);
typedef struct BackgroundWorker
{
char bgw_name[BGW_MAXLEN];
@@ -107,7 +107,7 @@ typedef struct BackgroundWorker
<para>
<structfield>bgw_main</structfield> is a pointer to the function to run when
the process is started. This function must take a single argument of type
- <type>void *</> and return <type>void</>.
+ <type>Datum</> and return <type>void</>.
<structfield>bgw_main_arg</structfield> will be passed to it as its only
argument. Note that the global variable <literal>MyBgworkerEntry</literal>
points to a copy of the <structname>BackgroundWorker</structname> structure