|
37 | 37 | from its <function>_PG_init()</>. |
38 | 38 | The structure <structname>BackgroundWorker</structname> is defined thus: |
39 | 39 | <programlisting> |
40 | | -typedef void (*bgworker_main_type)(void *main_arg); |
| 40 | +typedef void (*bgworker_main_type)(Datummain_arg); |
41 | 41 | typedef struct BackgroundWorker |
42 | 42 | { |
43 | 43 | char bgw_name[BGW_MAXLEN]; |
@@ -94,7 +94,7 @@ typedef struct BackgroundWorker |
94 | 94 | <para> |
95 | 95 | <structfield>bgw_main</structfield> is a pointer to the function to run when |
96 | 96 | the process is started. This function must take a single argument of type |
97 | | - <type>void *</> and return <type>void</>. |
| 97 | + <type>Datum</> and return <type>void</>. |
98 | 98 | <structfield>bgw_main_arg</structfield> will be passed to it as its only |
99 | 99 | argument. Note that the global variable <literal>MyBgworkerEntry</literal> |
100 | 100 | points to a copy of the <structname>BackgroundWorker</structname> structure |
|