diff options
author | scuri <scuri> | 2011-03-18 22:23:38 +0000 |
---|---|---|
committer | scuri <scuri> | 2011-03-18 22:23:38 +0000 |
commit | 64a0b5ebb41d36a7db87d24c5451f7db925e24f8 (patch) | |
tree | f377bae28d0cae28aa0f9ea32442bee56e1f6135 /src/cd.c | |
parent | 0daf9f7ba7b50fea5c9764cf0dc05ad76c005716 (diff) |
New: functions cdContextIsPlus and cdContextType.
Diffstat (limited to 'src/cd.c')
-rw-r--r-- | src/cd.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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; |