Skip to content

Instantly share code, notes, and snippets.

@SamWhited
Last active August 29, 2015 14:22

Revisions

  1. SamWhited revised this gist May 31, 2015. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions Makefile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    .PHONY: build
    all: cameras

    cameras: cameras.c
    gcc -I/usr/include/libraw $< -o $@ -lraw
  2. SamWhited created this gist May 31, 2015.
    12 changes: 12 additions & 0 deletions cameras.c
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #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;
    }