Skip to content

coanda/mcc-vapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libmcc.vapi

Vala API wrapper for libmcc 1.0.X

Overview

This repository contains Vala language bindings for the libmccusb library as well as an examples to show its use.

MCCLIBUSB: ftp://lx10.tx.ncsu.edu/pub/Linux/drivers/USB/

The Vala language: http://live.gnome.org/Vala/

For bug reports, or enhancement requests: https://github.com/coanda/mcc-vapi/issues

Installation

Installing Vapi files only requires copying them to the appropriate directory.

git clone https://github.com/coanda/mcc-vapi.git
cd mcc-vapi
sudo cp libmccusb.{deps,vapi} /usr/share/vala/vapi/
sudo cp libmccusb.pc /usr/share/pkgconfig/

Usage

To use libmcc.vapi simply include the 'using Mcc;' statement at the top of your vala code and compile your application with '--pkg libusb' and place the vapi in either the configured system vapidir or using the '--vapidir=/path/to/your/dir' option.

Example:

valac --pkg libusb --vapidir=/path/to/vapi/dir mycode.vala

Example program

To compile and run the example program follow these instructions.

cd example
valac -v --pkg libmccusb test-usb1208FS.vala
./test-usb1208FS

Licensing

Please see the file called COPYING.

About

Vala API wrapper for the Measurement Computing device drivers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages