--- libaitpelco/src/get.c 2012/07/22 22:21:50 1.3 +++ libaitpelco/src/get.c 2013/05/30 09:20:16 1.4 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: get.c,v 1.3 2012/07/22 22:21:50 misho Exp $ +* $Id: get.c,v 1.4 2013/05/30 09:20:16 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 +Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -51,7 +51,7 @@ SUCH DAMAGE. * @p = Packet structure * return: 'd' - PelcoD, 'p' - PelcoP, 0 - unknown or bad packet */ -inline u_char +u_char pelco_GetVersion(void * __restrict p) { u_char *ptr = (u_char *) p; @@ -82,7 +82,7 @@ pelco_GetVersion(void * __restrict p) * return: 0xFF and pelco_GetErrno() == ENOEXEC - error, any number is camera address */ -inline u_char +u_char pelco_GetCamNo(void * __restrict p) { u_char ver; @@ -120,7 +120,7 @@ pelco_GetCamNo(void * __restrict p) * @data[2] = Output Data for commands 1 & 2 * return: 'd' - PelcoD, 'p' - PelcoP, 0 - unknown or bad packet */ -inline u_char +u_char pelco_GetCamCmdData(void * __restrict p, u_char * __restrict cam, u_char * __restrict cmd, u_char * __restrict data) { @@ -168,7 +168,7 @@ pelco_GetCamCmdData(void * __restrict p, u_char * __re * @cmd2 = Output typecasted commands 2 * return: 0xFF - error, !=0 return number arguments */ -inline u_char +u_char pelco_D_toCmd(u_char * __restrict cmd, struct bitD_Cmd1 * __restrict cmd1, struct bitD_Cmd2 * __restrict cmd2) { @@ -198,7 +198,7 @@ pelco_D_toCmd(u_char * __restrict cmd, struct bitD_Cmd * @cmd2 = Output typecasted commands 2 * return: 0xFF - error, !=0 return number arguments */ -inline u_char +u_char pelco_P_toCmd(u_char * __restrict cmd, struct bitP_Cmd1 * __restrict cmd1, struct bitP_Cmd2 * __restrict cmd2) {