- /* These are the symbols I need or want from packet.dll */
- static const symbol_table_t symbols[] = {
- SYM(PacketGetVersion, FALSE),
- SYM(PacketOpenAdapter, FALSE),
- SYM(PacketCloseAdapter, FALSE),
- SYM(PacketRequest, FALSE),
- { NULL, NULL, FALSE }
- };
-
- GModule *wh; /* wpcap handle */
- const symbol_table_t *sym;
-
- wh = g_module_open("packet", 0);
-
- if (!wh) {
- return;
- }
-
- sym = symbols;
- while (sym->name) {
- if (!g_module_symbol(wh, sym->name, sym->ptr)) {
- if (sym->optional) {
- /*
- * We don't care if it's missing; we just
- * don't use it.
- */
- *sym->ptr = NULL;
- } else {
- /*
- * We require this symbol.
- */
- return;
- }
- }
- sym++;
- }
-
- has_wpacket = TRUE;
+ /* These are the symbols I need or want from packet.dll */
+ static const symbol_table_t symbols[] = {
+ SYM(PacketGetVersion, FALSE),
+ SYM(PacketOpenAdapter, FALSE),
+ SYM(PacketCloseAdapter, FALSE),
+ SYM(PacketRequest, FALSE),
+ { NULL, NULL, FALSE }
+ };
+
+ GModule *wh; /* wpcap handle */
+ const symbol_table_t *sym;
+
+ wh = g_module_open("packet", 0);
+
+ if (!wh) {
+ return;
+ }
+
+ sym = symbols;
+ while (sym->name) {
+ if (!g_module_symbol(wh, sym->name, sym->ptr)) {
+ if (sym->optional) {
+ /*
+ * We don't care if it's missing; we just
+ * don't use it.
+ */
+ *sym->ptr = NULL;
+ } else {
+ /*
+ * We require this symbol.
+ */
+ return;
+ }
+ }
+ sym++;
+ }
+
+ has_wpacket = TRUE;