|
47 | 47 | <para>
|
48 | 48 | The structure <structname>BackgroundWorker</structname> is defined thus:
|
49 | 49 | <programlisting>
|
50 |
| -typedef void (*bgworker_main_type)(void *main_arg); |
| 50 | +typedef void (*bgworker_main_type)(Datummain_arg); |
51 | 51 | typedef struct BackgroundWorker
|
52 | 52 | {
|
53 | 53 | char bgw_name[BGW_MAXLEN];
|
@@ -107,7 +107,7 @@ typedef struct BackgroundWorker
|
107 | 107 | <para>
|
108 | 108 | <structfield>bgw_main</structfield> is a pointer to the function to run when
|
109 | 109 | the process is started. This function must take a single argument of type
|
110 |
| - <type>void *</> and return <type>void</>. |
| 110 | + <type>Datum</> and return <type>void</>. |
111 | 111 | <structfield>bgw_main_arg</structfield> will be passed to it as its only
|
112 | 112 | argument. Note that the global variable <literal>MyBgworkerEntry</literal>
|
113 | 113 | points to a copy of the <structname>BackgroundWorker</structname> structure
|
|