Last active
August 29, 2015 14:22
-
-
Save SamWhited/598a6a2dd2a56d6077e0 to your computer and use it in GitHub Desktop.
Print all cameras supported by the currently linked version of libraw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <libraw.h> | |
#include <stdio.h> | |
int main() | |
{ | |
const char** list = libraw_cameraList(); | |
for (int i = 0; i < libraw_cameraCount(); i++) { | |
printf(list[i]); | |
printf("\n"); | |
} | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: build | |
all: cameras | |
cameras: cameras.c | |
gcc -I/usr/include/libraw $< -o $@ -lraw |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment