/*
 * 2005 Photonfocus AG, Dani Hofmann
 *
 *
 * Common file. To make GetProperty and SetPropery easier.
 *
 * Every property can set or get with the PropertyString() function. 
 * Check the propertylist to see which type every property has. 
 * For Integer and Bool - types it is also possible to use the ProperyInt() function.
 * For Float - types, the PropertyFloat() function
 * 
 */
#ifndef COMMON_H
#define COMMON_H
#include <stdio.h>
#include "pfcam.h"

static char s_line[] = "----------------------------------------------\n";


//--------------------------------------------------------------------------
EXTERN_C void handleError(int error);
EXTERN_C int SetPropertyString(int port, char* property, char* val);
EXTERN_C int SetPropertyInt(int port, char* property, int val);
EXTERN_C int SetPropertyFloat(int port, char* property, float val);
EXTERN_C int GetPropertyString(int port, char* property, char* val);
EXTERN_C int GetPropertyInt(int port, char* property, int* val);
EXTERN_C int GetPropertyFloat(int port, char* property, float* val);
#endif
