From 64a0b5ebb41d36a7db87d24c5451f7db925e24f8 Mon Sep 17 00:00:00 2001 From: scuri Date: Fri, 18 Mar 2011 22:23:38 +0000 Subject: New: functions cdContextIsPlus and cdContextType. --- src/cd.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/cd.c') diff --git a/src/cd.c b/src/cd.c index 3816731..4553575 100644 --- a/src/cd.c +++ b/src/cd.c @@ -264,6 +264,20 @@ unsigned long cdContextCaps(cdContext *context) return context->caps; } +int cdContextIsPlus(cdContext *context) +{ + if (!context) + return (unsigned long)CD_ERROR; + return context->plus; +} + +int cdContextType(cdContext *context) +{ + if (!context) + return (unsigned long)CD_ERROR; + return context->type; +} + int cdCanvasSimulate(cdCanvas* canvas, int mode) { int sim_mode; -- cgit v1.2.3