--- libaitsess/inc/aitsess.h 2012/02/10 16:45:36 1.3.2.3 +++ libaitsess/inc/aitsess.h 2012/02/10 16:52:37 1.3.2.4 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitsess.h,v 1.3.2.3 2012/02/10 16:45:36 misho Exp $ +* $Id: aitsess.h,v 1.3.2.4 2012/02/10 16:52:37 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -270,12 +270,11 @@ int ipc_decSemaphore(ait_sess_t * __restrict s); /* --------------------------------------------------------- */ -#define CREATE_SESSION(fname, sd, siz, s, ...) (assert((s)), (s)->sess.create((fname), (sd), \ +#define ALLOC_MEMORY(fname, sd, siz, s, ...) (assert((s)), (s)->sess.create((fname), (sd), \ (siz), (s), ## __VA_ARGS__)) -#define DESTROY_SESSION(fname, s) do { assert((s)); \ +#define FREE_MEMORY(fname, s) do { assert((s)); \ (s)->sess.destroy((fname), (s)); \ } while(0) - #define ATTACH_MEMORY(s) (assert((s)), (s)->sess.attach((s), NULL)) #define DETACH_MEMORY(s) do { assert((s)); (s)->sess.detach((s)); } while(0)