Source

pygame / src / cdrom.c

Diff from to

src/cdrom.c

 #define PYGAMEAPI_CDROM_INTERNAL
 #include "pygame.h"
 #include "pgcompat.h"
-#include "pygamedocs.h"
+#include "doc/cdrom_doc.h"
 
 #define CDROM_MAXDRIVES 32
 static SDL_CD* cdrom_drivedata[CDROM_MAXDRIVES] = {NULL};
     /* export the c api */
     c_api[0] = &PyCD_Type;
     c_api[1] = PyCD_New;
-    apiobj = PyCObject_FromVoidPtr (c_api, NULL);
+    apiobj = encapsulate_api (c_api, "cdrom");
     if (apiobj == NULL) {
         DECREF_MOD (module);
         MODINIT_ERROR;