Merge pull request #889 from Lomanic/issue832

[darwin][disk][host] Move C dependencies to satisfy go mod and have descriptive file names
pull/891/head
Lomanic 5 years ago committed by GitHub
commit ca4849b710
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,7 +7,7 @@ package disk
#cgo LDFLAGS: -framework CoreFoundation -framework IOKit
#include <stdint.h>
#include <CoreFoundation/CoreFoundation.h>
#include "disk_darwin.h"
#include "iostat_darwin.h"
*/
import "C"

@ -1,7 +1,7 @@
// https://github.com/lufia/iostat/blob/9f7362b77ad333b26c01c99de52a11bdb650ded2/iostat_darwin.c
#include <stdint.h>
#include <CoreFoundation/CoreFoundation.h>
#include "disk_darwin.h"
#include "iostat_darwin.h"
#define IOKIT 1 /* to get io_name_t in device_types.h */

@ -4,9 +4,7 @@
package host
// #cgo LDFLAGS: -framework IOKit
// #include <stdio.h>
// #include <string.h>
// #include "include/smc.c"
// #include "smc_darwin.h"
import "C"
import "context"

@ -1,4 +1,6 @@
#include "smc.h"
#include <stdio.h>
#include <string.h>
#include "smc_darwin.h"
#define IOSERVICE_SMC "AppleSMC"
#define IOSERVICE_MODEL "IOPlatformExpertDevice"
Loading…
Cancel
Save