mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-09 23:22:22 +00:00
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source files. Instead, it should be used in headers, and the proper C source include that header. Some special cases are symbols that need to be shared between modules, but not expected to be used by external drivers, and symbols that are accessible via LoaderSymbol/dlopen. This patch also adds conditionally some new sdk header files, depending on extensions enabled. These files were added to match pattern for other extensions/modules, that is, have the headers "deciding" symbol visibility in the sdk. These headers are: o Xext/panoramiXsrv.h, Xext/panoramiX.h o fbpict.h (unconditionally) o vidmodeproc.h o mioverlay.h (unconditionally, used only by xaa) o xfixes.h (unconditionally, symbols required by dri2) LoaderSymbol and similar functions now don't have different prototypes, in loaderProcs.h and xf86Module.h, so that both headers can be included, without the need of defining IN_LOADER. xf86NewInputDevice() device prototype readded to xf86Xinput.h, but not exported (and with a comment about it).
This commit is contained in:
parent
0b8f8b24f7
commit
49f77fff14
528 changed files with 5964 additions and 5880 deletions
|
|
@ -13,7 +13,7 @@
|
|||
I2C_WriteRead(&(t->d), data, 2, NULL, 0); \
|
||||
}
|
||||
|
||||
_X_EXPORT TDA9850Ptr Detect_tda9850(I2CBusPtr b, I2CSlaveAddr addr)
|
||||
TDA9850Ptr Detect_tda9850(I2CBusPtr b, I2CSlaveAddr addr)
|
||||
{
|
||||
TDA9850Ptr t;
|
||||
I2CByte a;
|
||||
|
|
@ -53,7 +53,7 @@ _X_EXPORT TDA9850Ptr Detect_tda9850(I2CBusPtr b, I2CSlaveAddr addr)
|
|||
return t;
|
||||
}
|
||||
|
||||
_X_EXPORT Bool tda9850_init(TDA9850Ptr t)
|
||||
Bool tda9850_init(TDA9850Ptr t)
|
||||
{
|
||||
t->stereo = 1;
|
||||
t->sap = 0;
|
||||
|
|
@ -63,7 +63,7 @@ _X_EXPORT Bool tda9850_init(TDA9850Ptr t)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
_X_EXPORT void tda9850_setaudio(TDA9850Ptr t)
|
||||
void tda9850_setaudio(TDA9850Ptr t)
|
||||
{
|
||||
CARD8 data[2];
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ if(t->mux==2)
|
|||
TDA9850(0x06,(t->stereo<<6)|(t->sap<<7)|(t->mute?0x8:0)|(t->sap_mute?0x10:0x0));
|
||||
}
|
||||
|
||||
_X_EXPORT void tda9850_mute(TDA9850Ptr t, Bool mute)
|
||||
void tda9850_mute(TDA9850Ptr t, Bool mute)
|
||||
{
|
||||
CARD8 data[2];
|
||||
|
||||
|
|
@ -93,7 +93,7 @@ t->mute = mute;
|
|||
TDA9850(0x06,(t->stereo<<6)|(t->sap<<7)|(t->mute?0x8:0x0)|(t->sap_mute?0x10:0x0));
|
||||
}
|
||||
|
||||
_X_EXPORT void tda9850_sap_mute(TDA9850Ptr t, Bool sap_mute)
|
||||
void tda9850_sap_mute(TDA9850Ptr t, Bool sap_mute)
|
||||
{
|
||||
CARD8 data[2];
|
||||
|
||||
|
|
@ -103,7 +103,7 @@ t->sap_mute = sap_mute;
|
|||
TDA9850(0x06,(t->stereo<<6)|(t->sap<<7)|(t->mute?0x8:0x0)|(t->sap_mute?0x10:0x0));
|
||||
}
|
||||
|
||||
_X_EXPORT CARD16 tda9850_getstatus(TDA9850Ptr t)
|
||||
CARD16 tda9850_getstatus(TDA9850Ptr t)
|
||||
{
|
||||
CARD16 status;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue