00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef CG_UPNP_AV_CRCSCONTROLPOINT_H
00010 #define CG_UPNP_AV_CRCSCONTROLPOINT_H
00011
00012 #include <cybergarage/renderingcontrol/crenderingcontrol.h>
00013 #include <cybergarage/renderingcontrol/crcsactionarguments.h>
00014 #include <cybergarage/upnp/cdevice.h>
00015
00016
00017
00018
00019
00039 int cg_upnp_av_rcs_control_invokeaction(CgUpnpDevice* upnpDevice,
00040 char* actionName,
00041 char** errorString,
00042 ...);
00043
00044
00045
00046
00047
00055 #define cg_upnp_av_rcs_control_listpresets(upnpDevice, \
00056 errorString, \
00057 instanceID, \
00058 currentPresetNameList) \
00059 \
00060 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00061 CG_UPNP_RCS_ACTION_LISTPRESETS, \
00062 errorString, \
00063 CG_UPNP_RCS_ARG_INSTANCEID, \
00064 instanceID, \
00065 CG_UPNP_RCS_ARG_CURRENTPRESETNAMELIST, \
00066 currentPresetNameList, \
00067 NULL)
00068
00069
00077 #define cg_upnp_av_rcs_control_selectpreset(upnpDevice, \
00078 errorString, \
00079 instanceID, \
00080 presetName) \
00081 \
00082 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00083 CG_UPNP_RCS_ACTION_SELECTPRESET, \
00084 errorString, \
00085 CG_UPNP_RCS_ARG_INSTANCEID, \
00086 instanceID, \
00087 CG_UPNP_RCS_ARG_PRESETNAME, \
00088 presetName, \
00089 NULL)
00090
00091
00092
00093
00094
00102 #define cg_upnp_av_rcs_control_getbrightness(upnpDevice, \
00103 errorString, \
00104 instanceID, \
00105 brightness) \
00106 \
00107 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00108 CG_UPNP_RCS_ACTION_GETBRIGHTNESS, \
00109 errorString, \
00110 CG_UPNP_RCS_ARG_INSTANCEID, \
00111 instanceID, \
00112 CG_UPNP_RCS_ARG_CURRENTBRIGHNESS, \
00113 brightness, \
00114 NULL)
00115
00123 #define cg_upnp_av_rcs_control_setbrightness(upnpDevice, \
00124 errorString, \
00125 instanceID, \
00126 brightness) \
00127 \
00128 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00129 CG_UPNP_RCS_ACTION_SETBRIGHTNESS, \
00130 errorString, \
00131 CG_UPNP_RCS_ARG_INSTANCEID, \
00132 instanceID, \
00133 CG_UPNP_RCS_ARG_DESIREDBRIGHTNESS, \
00134 brightness, \
00135 NULL)
00136
00144 #define cg_upnp_av_rcs_control_getcontrast(upnpDevice, \
00145 errorString, \
00146 instanceID, \
00147 contrast) \
00148 \
00149 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00150 CG_UPNP_RCS_ACTION_GETCONTRAST, \
00151 errorString, \
00152 CG_UPNP_RCS_ARG_INSTANCEID, \
00153 instanceID, \
00154 CG_UPNP_RCS_ARG_CURRENTCONTRAST, \
00155 contrast, \
00156 NULL)
00157
00165 #define cg_upnp_av_rcs_control_setcontrast(upnpDevice, \
00166 errorString, \
00167 instanceID, \
00168 contrast) \
00169 \
00170 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00171 CG_UPNP_RCS_ACTION_SETCONTRAST, \
00172 errorString, \
00173 CG_UPNP_RCS_ARG_INSTANCEID, \
00174 instanceID, \
00175 CG_UPNP_RCS_ARG_DESIREDCONTRAST, \
00176 contrast, \
00177 NULL)
00178
00186 #define cg_upnp_av_rcs_control_getsharpness(upnpDevice, \
00187 errorString, \
00188 instanceID, \
00189 sharpness) \
00190 \
00191 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00192 CG_UPNP_RCS_ACTION_GETSHARPNESS, \
00193 errorString, \
00194 CG_UPNP_RCS_ARG_INSTANCEID, \
00195 instanceID, \
00196 CG_UPNP_RCS_ARG_CURRENTSHARPNESS, \
00197 sharpness, \
00198 NULL)
00199
00207 #define cg_upnp_av_rcs_control_setsharpness(upnpDevice, \
00208 errorString, \
00209 instanceID, \
00210 sharpness) \
00211 \
00212 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00213 CG_UPNP_RCS_ACTION_SETSHARPNESS, \
00214 errorString, \
00215 CG_UPNP_RCS_ARG_INSTANCEID, \
00216 instanceID, \
00217 CG_UPNP_RCS_ARG_DESIREDSHARPNESS, \
00218 sharpness, \
00219 NULL)
00220
00228 #define cg_upnp_av_rcs_control_getredvideogain(upnpDevice, \
00229 errorString, \
00230 instanceID, \
00231 gain) \
00232 \
00233 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00234 CG_UPNP_RCS_ACTION_GETREDVIDEOGAIN, \
00235 errorString, \
00236 CG_UPNP_RCS_ARG_INSTANCEID, \
00237 instanceID, \
00238 CG_UPNP_RCS_ARG_CURRENTREDVIDEOGAIN, \
00239 gain, \
00240 NULL)
00241
00249 #define cg_upnp_av_rcs_control_setredvideogain(upnpDevice, \
00250 errorString, \
00251 instanceID, \
00252 gain) \
00253 \
00254 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00255 CG_UPNP_RCS_ACTION_SETREDVIDEOGAIN, \
00256 errorString, \
00257 CG_UPNP_RCS_ARG_INSTANCEID, \
00258 instanceID, \
00259 CG_UPNP_RCS_ARG_DESIREDREDVIDEOGAIN, \
00260 gain, \
00261 NULL)
00262
00270 #define cg_upnp_av_rcs_control_getgreenvideogain(upnpDevice, \
00271 errorString, \
00272 instanceID, \
00273 gain) \
00274 \
00275 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00276 CG_UPNP_RCS_ACTION_GETGREENVIDEOGAIN, \
00277 errorString, \
00278 CG_UPNP_RCS_ARG_INSTANCEID, \
00279 instanceID, \
00280 CG_UPNP_RCS_ARG_CURRENTGREENVIDEOGAIN, \
00281 gain, \
00282 NULL)
00283
00291 #define cg_upnp_av_rcs_control_setgreenvideogain(upnpDevice, \
00292 errorString, \
00293 instanceID, \
00294 gain) \
00295 \
00296 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00297 CG_UPNP_RCS_ACTION_SETGREENVIDEOGAIN, \
00298 errorString, \
00299 CG_UPNP_RCS_ARG_INSTANCEID, \
00300 instanceID, \
00301 CG_UPNP_RCS_ARG_DESIREDGREENVIDEOGAIN, \
00302 gain, \
00303 NULL)
00304
00312 #define cg_upnp_av_rcs_control_getbluevideogain(upnpDevice, \
00313 errorString, \
00314 instanceID, \
00315 gain) \
00316 \
00317 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00318 CG_UPNP_RCS_ACTION_GETBLUEVIDEOGAIN, \
00319 errorString, \
00320 CG_UPNP_RCS_ARG_INSTANCEID, \
00321 instanceID, \
00322 CG_UPNP_RCS_ARG_CURRENTBLUEVIDEOGAIN, \
00323 gain, \
00324 NULL)
00325
00333 #define cg_upnp_av_rcs_control_setbluevideogain(upnpDevice, \
00334 errorString, \
00335 instanceID, \
00336 gain) \
00337 \
00338 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00339 CG_UPNP_RCS_ACTION_SETBLUEVIDEOGAIN, \
00340 errorString, \
00341 CG_UPNP_RCS_ARG_INSTANCEID, \
00342 instanceID, \
00343 CG_UPNP_RCS_ARG_DESIREDBLUEVIDEOGAIN, \
00344 gain, \
00345 NULL)
00346
00354 #define cg_upnp_av_rcs_control_getredvideoblacklevel(upnpDevice, \
00355 errorString, \
00356 instanceID, \
00357 blackLevel) \
00358 \
00359 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00360 CG_UPNP_RCS_ACTION_GETREDVIDEOBLACKLEVEL, \
00361 errorString, \
00362 CG_UPNP_RCS_ARG_INSTANCEID, \
00363 instanceID, \
00364 CG_UPNP_RCS_ARG_CURRENTREDVIDEOBLACKLEVEL, \
00365 blackLevel, \
00366 NULL)
00367
00375 #define cg_upnp_av_rcs_control_setredvideoblacklevel(upnpDevice, \
00376 errorString, \
00377 instanceID, \
00378 blackLevel) \
00379 \
00380 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00381 CG_UPNP_RCS_ACTION_SETREDVIDEOBLACKLEVEL, \
00382 errorString, \
00383 CG_UPNP_RCS_ARG_INSTANCEID, \
00384 instanceID, \
00385 CG_UPNP_RCS_ARG_DESIREDREDVIDEOBLACKLEVEL, \
00386 blackLevel, \
00387 NULL)
00388
00396 #define cg_upnp_av_rcs_control_getgreenvideoblacklevel(upnpDevice, \
00397 errorString, \
00398 instanceID, \
00399 blackLevel) \
00400 \
00401 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00402 CG_UPNP_RCS_ACTION_GETGREENVIDEOBLACKLEVEL, \
00403 CG_UPNP_RCS_ARG_INSTANCEID, \
00404 instanceID, \
00405 CG_UPNP_RCS_ARG_CURRENTGREENVIDEOBLACKLEVEL, \
00406 blackLevel, \
00407 NULL)
00408
00416 #define cg_upnp_av_rcs_control_setgreenvideoblacklevel(upnpDevice, \
00417 errorString, \
00418 instanceID, \
00419 blackLevel) \
00420 \
00421 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00422 CG_UPNP_RCS_ACTION_SETGREENVIDEOBLACKLEVEL, \
00423 errorString, \
00424 CG_UPNP_RCS_ARG_INSTANCEID, \
00425 instanceID, \
00426 CG_UPNP_RCS_ARG_DESIREDGREENVIDEOBLACKLEVEL, \
00427 blackLevel, \
00428 NULL)
00429
00437 #define cg_upnp_av_rcs_control_getbluevideoblacklevel(upnpDevice, \
00438 errorString, \
00439 instanceID, \
00440 blackLevel) \
00441 \
00442 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00443 CG_UPNP_RCS_ACTION_GETBLUEVIDEOBLACKLEVEL, \
00444 errorString, \
00445 CG_UPNP_RCS_ARG_INSTANCEID, \
00446 instanceID, \
00447 CG_UPNP_RCS_ARG_CURRENTBLUEVIDEOBLACKLEVEL, \
00448 blackLevel, \
00449 NULL)
00450
00458 #define cg_upnp_av_rcs_control_setbluevideoblacklevel(upnpDevice, \
00459 errorString, \
00460 instanceID, \
00461 blackLevel) \
00462 \
00463 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00464 CG_UPNP_RCS_ACTION_SETBLUEVIDEOBLACKLEVEL, \
00465 errorString, \
00466 CG_UPNP_RCS_ARG_INSTANCEID, \
00467 instanceID, \
00468 CG_UPNP_RCS_ARG_DESIREDBLUEVIDEOBLACKLEVEL, \
00469 blackLevel, \
00470 NULL)
00471
00479 #define cg_upnp_av_rcs_control_getcolortemperature(upnpDevice, \
00480 errorString, \
00481 instanceID, \
00482 colorTemp) \
00483 \
00484 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00485 CG_UPNP_RCS_ACTION_GETCOLORTEMPERATURE, \
00486 errorString, \
00487 CG_UPNP_RCS_ARG_INSTANCEID, \
00488 instanceID, \
00489 CG_UPNP_RCS_ARG_CURRENTCOLORTEMPERATURE, \
00490 colorTemp, \
00491 NULL)
00492
00500 #define cg_upnp_av_rcs_control_setcolortemperature(upnpDevice, \
00501 errorString, \
00502 instanceID, \
00503 colorTemp) \
00504 \
00505 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00506 CG_UPNP_RCS_ACTION_SETCOLORTEMPERATURE, \
00507 errorString, \
00508 CG_UPNP_RCS_ARG_INSTANCEID, \
00509 instanceID, \
00510 CG_UPNP_RCS_ARG_DESIREDCOLORTEMPERATURE, \
00511 colorTemp, \
00512 NULL)
00513
00521 #define cg_upnp_av_rcs_control_gethorizontalkeystone(upnpDevice, \
00522 errorString, \
00523 instanceID, \
00524 keystone) \
00525 \
00526 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00527 CG_UPNP_RCS_ACTION_GETHORIZONTALKEYSTONE, \
00528 errorString, \
00529 CG_UPNP_RCS_ARG_INSTANCEID, \
00530 instanceID, \
00531 CG_UPNP_RCS_ARG_CURRENTHORIZONTALKEYSTONE, \
00532 keystone, \
00533 NULL)
00534
00542 #define cg_upnp_av_rcs_control_sethorizontalkeystone(upnpDevice, \
00543 errorString, \
00544 instanceID, \
00545 keystone) \
00546 \
00547 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00548 CG_UPNP_RCS_ACTION_SETHORIZONTALKEYSTONE, \
00549 errorString, \
00550 CG_UPNP_RCS_ARG_INSTANCEID, \
00551 instanceID, \
00552 CG_UPNP_RCS_ARG_DESIREDHORIZONTALKEYSTONE, \
00553 keystone, \
00554 NULL)
00555
00563 #define cg_upnp_av_rcs_control_getverticalkeystone(upnpDevice, \
00564 errorString, \
00565 instanceID, \
00566 keystone) \
00567 \
00568 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00569 CG_UPNP_RCS_ACTION_GETVERTICALKEYSTONE, \
00570 errorString, \
00571 CG_UPNP_RCS_ARG_INSTANCEID, \
00572 instanceID, \
00573 CG_UPNP_RCS_ARG_CURRENTVERTICALKEYSTONE, \
00574 keystone, \
00575 NULL)
00576
00584 #define cg_upnp_av_rcs_control_setverticalkeystone(upnpDevice, \
00585 errorString, \
00586 instanceID, \
00587 keystone) \
00588 \
00589 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00590 CG_UPNP_RCS_ACTION_SETVERTICALKEYSTONE, \
00591 errorString, \
00592 CG_UPNP_RCS_ARG_INSTANCEID, \
00593 instanceID, \
00594 CG_UPNP_RCS_ARG_DESIREDVERTICALKEYSTONE, \
00595 keystone, \
00596 NULL)
00597
00598
00599
00600
00601
00610 #define cg_upnp_av_rcs_control_getmute(upnpDevice, \
00611 errorString, \
00612 instanceID, \
00613 channel, \
00614 mute) \
00615 \
00616 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00617 CG_UPNP_RCS_ACTION_GETMUTE, \
00618 errorString, \
00619 CG_UPNP_RCS_ARG_INSTANCEID, \
00620 instanceID, \
00621 CG_UPNP_RCS_ARG_CHANNEL, \
00622 channel, \
00623 CG_UPNP_RCS_ARG_CURRENTMUTE, \
00624 mute, \
00625 NULL)
00626
00635 #define cg_upnp_av_rcs_control_setmute(upnpDevice, \
00636 errorString, \
00637 instanceID, \
00638 channel, \
00639 mute) \
00640 \
00641 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00642 CG_UPNP_RCS_ACTION_SETMUTE, \
00643 errorString, \
00644 CG_UPNP_RCS_ARG_INSTANCEID, \
00645 instanceID, \
00646 CG_UPNP_RCS_ARG_CHANNEL, \
00647 channel, \
00648 CG_UPNP_RCS_ARG_DESIREDMUTE, \
00649 mute, \
00650 NULL)
00651
00660 #define cg_upnp_av_rcs_control_getvolume(upnpDevice, \
00661 errorString, \
00662 instanceID, \
00663 channel, \
00664 volume) \
00665 \
00666 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00667 CG_UPNP_RCS_ACTION_GETVOLUME, \
00668 errorString, \
00669 CG_UPNP_RCS_ARG_INSTANCEID, \
00670 instanceID, \
00671 CG_UPNP_RCS_ARG_CHANNEL, \
00672 channel, \
00673 CG_UPNP_RCS_ARG_CURRENTVOLUME, \
00674 volume, \
00675 NULL)
00676
00685 #define cg_upnp_av_rcs_control_setvolume(upnpDevice, \
00686 errorString, \
00687 instanceID, \
00688 channel, \
00689 volume) \
00690 \
00691 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00692 CG_UPNP_RCS_ACTION_SETVOLUME, \
00693 errorString, \
00694 CG_UPNP_RCS_ARG_INSTANCEID, \
00695 instanceID, \
00696 CG_UPNP_RCS_ARG_CHANNEL, \
00697 channel, \
00698 CG_UPNP_RCS_ARG_DESIREDVOLUME, \
00699 volume, \
00700 NULL)
00701
00710 #define cg_upnp_av_rcs_control_getvolumedb(upnpDevice, \
00711 errorString, \
00712 instanceID, \
00713 channel, \
00714 volume) \
00715 \
00716 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00717 CG_UPNP_RCS_ACTION_GETVOLUMEDB, \
00718 errorString, \
00719 CG_UPNP_RCS_ARG_INSTANCEID, \
00720 instanceID, \
00721 CG_UPNP_RCS_ARG_CHANNEL, \
00722 channel, \
00723 CG_UPNP_RCS_ARG_CURRENTVOLUMEDB, \
00724 volume, \
00725 NULL)
00726
00735 #define cg_upnp_av_rcs_control_setvolumedb(upnpDevice, \
00736 errorString, \
00737 instanceID, \
00738 channel, \
00739 volume) \
00740 \
00741 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00742 CG_UPNP_RCS_ACTION_SETVOLUMEDB, \
00743 errorString, \
00744 CG_UPNP_RCS_ARG_INSTANCEID, \
00745 instanceID, \
00746 CG_UPNP_RCS_ARG_CHANNEL, \
00747 channel, \
00748 CG_UPNP_RCS_ARG_DESIREDVOLUMEDB, \
00749 volume, \
00750 NULL)
00751
00752
00762 #define cg_upnp_av_rcs_control_getvolumedbrange(upnpDevice, \
00763 errorString, \
00764 instanceID, \
00765 channel, \
00766 min, \
00767 max) \
00768 \
00769 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00770 CG_UPNP_RCS_ACTION_GETVOLUMEDBRANGE, \
00771 errorString, \
00772 CG_UPNP_RCS_ARG_INSTANCEID, \
00773 instanceID, \
00774 CG_UPNP_RCS_ARG_CHANNEL, \
00775 channel, \
00776 CG_UPNP_RCS_ARG_MINVALUE, \
00777 min, \
00778 CG_UPNP_RCS_ARG_MAXVALUE, \
00779 max, \
00780 NULL)
00781
00790 #define cg_upnp_av_rcs_control_getloudness(upnpDevice, \
00791 errorString, \
00792 instanceID, \
00793 channel, \
00794 loudness) \
00795 \
00796 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00797 CG_UPNP_RCS_ACTION_GETLOUDNESS, \
00798 errorString, \
00799 CG_UPNP_RCS_ARG_INSTANCEID, \
00800 instanceID, \
00801 CG_UPNP_RCS_ARG_CHANNEL, \
00802 channel, \
00803 CG_UPNP_RCS_ARG_CURRENTLOUDNESS, \
00804 loudness, \
00805 NULL)
00806
00815 #define cg_upnp_av_rcs_control_setloudness(upnpDevice, \
00816 errorString, \
00817 instanceID, \
00818 channel, \
00819 loudness) \
00820 \
00821 cg_upnp_av_rcs_control_invokeaction(upnpDevice, \
00822 CG_UPNP_RCS_ACTION_SETLOUDNESS, \
00823 errorString, \
00824 CG_UPNP_RCS_ARG_INSTANCEID, \
00825 instanceID, \
00826 CG_UPNP_RCS_ARG_CHANNEL, \
00827 channel, \
00828 CG_UPNP_RCS_ARG_DESIREDLOUDNESS, \
00829 loudness, \
00830 NULL)
00831
00832 #endif