PM_VGASWITCHEROO,
PM_METHODS_COUNT /* not a method but a marker for the end */
};
-const char *bb_pm_method_string[PM_METHODS_COUNT];
+extern const char *bb_pm_method_string[PM_METHODS_COUNT];
/* String buffer size */
#define BUFFER_SIZE 1024
#include "pci.h"
#include "module.h"
+/* PCI Bus ID of the discrete video card */
+struct pci_bus_id *pci_bus_id_discrete;
+
/**
* Substitutes DRIVER in the passed path
* @param x_conf_file A path to be processed
#pragma once
/* PCI Bus ID of the discrete video card */
-struct pci_bus_id *pci_bus_id_discrete;
+extern struct pci_bus_id *pci_bus_id_discrete;
/// Start the X server by fork-exec, turn card on if needed.
bool start_secondary(bool);
switcheroo_on, switcheroo_off}
};
+struct switching_method *switcher = NULL;
+
/**
* Enumerates through available switching methods and try a method
*
/* number of switchers as defined in switching.c */
#define SWITCHERS_COUNT 2
-struct switching_method switching_methods[SWITCHERS_COUNT];
+extern struct switching_method switching_methods[SWITCHERS_COUNT];
/* A switching method that can be used or NULL if none */
-struct switching_method *switcher;
+extern struct switching_method *switcher;
struct switching_method *switcher_detect(const char *name, struct switch_info);
enum switch_state switch_status(void);