jsc-glib-4.0-JSCOptions.html 48.6 KB
Newer Older
Alberto Garcia's avatar
Alberto Garcia committed
1 2 3 4 5
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSCOptions: JavaScriptCore GLib Reference Manual</title>
Alberto Garcia's avatar
Alberto Garcia committed
6
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
Alberto Garcia's avatar
Alberto Garcia committed
7 8 9 10
<link rel="home" href="index.html" title="JavaScriptCore GLib Reference Manual">
<link rel="up" href="ch01.html" title="Class Overview">
<link rel="prev" href="JSCClass.html" title="JSCClass">
<link rel="next" href="jsc-glib-4.0-JSCVersion.html" title="JSCVersion">
Alberto Garcia's avatar
Alberto Garcia committed
11
<meta name="generator" content="GTK-Doc V1.33.0 (XML mode)">
Alberto Garcia's avatar
Alberto Garcia committed
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#jsc-glib-4.0-JSCOptions.description" class="shortcut">Description</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="JSCClass.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="jsc-glib-4.0-JSCVersion.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="jsc-glib-4.0-JSCOptions"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="jsc-glib-4.0-JSCOptions.top_of_page"></a>JSCOptions</span></h2>
<p>JSCOptions — JavaScript options</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="jsc-glib-4.0-JSCOptions.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
Alberto Garcia's avatar
Alberto Garcia committed
38 39
<col width="150px" class="functions_proto_type">
<col class="functions_proto_name">
Alberto Garcia's avatar
Alberto Garcia committed
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="jsc-glib-4.0-JSCOptions.html#jsc-options-set-boolean" title="jsc_options_set_boolean ()">jsc_options_set_boolean</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="jsc-glib-4.0-JSCOptions.html#jsc-options-get-boolean" title="jsc_options_get_boolean ()">jsc_options_get_boolean</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="jsc-glib-4.0-JSCOptions.html#jsc-options-set-int" title="jsc_options_set_int ()">jsc_options_set_int</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="jsc-glib-4.0-JSCOptions.html#jsc-options-get-int" title="jsc_options_get_int ()">jsc_options_get_int</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="jsc-glib-4.0-JSCOptions.html#jsc-options-set-uint" title="jsc_options_set_uint ()">jsc_options_set_uint</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="jsc-glib-4.0-JSCOptions.html#jsc-options-get-uint" title="jsc_options_get_uint ()">jsc_options_get_uint</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="jsc-glib-4.0-JSCOptions.html#jsc-options-set-size" title="jsc_options_set_size ()">jsc_options_set_size</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="jsc-glib-4.0-JSCOptions.html#jsc-options-get-size" title="jsc_options_get_size ()">jsc_options_get_size</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="jsc-glib-4.0-JSCOptions.html#jsc-options-set-double" title="jsc_options_set_double ()">jsc_options_set_double</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="jsc-glib-4.0-JSCOptions.html#jsc-options-get-double" title="jsc_options_get_double ()">jsc_options_get_double</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="jsc-glib-4.0-JSCOptions.html#jsc-options-set-string" title="jsc_options_set_string ()">jsc_options_set_string</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="jsc-glib-4.0-JSCOptions.html#jsc-options-get-string" title="jsc_options_get_string ()">jsc_options_get_string</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="jsc-glib-4.0-JSCOptions.html#jsc-options-set-range-string" title="jsc_options_set_range_string ()">jsc_options_set_range_string</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="jsc-glib-4.0-JSCOptions.html#jsc-options-get-range-string" title="jsc_options_get_range_string ()">jsc_options_get_range_string</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<span class="c_punctuation">(</span><a class="link" href="jsc-glib-4.0-JSCOptions.html#JSCOptionsFunc" title="JSCOptionsFunc ()">*JSCOptionsFunc</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="jsc-glib-4.0-JSCOptions.html#jsc-options-foreach" title="jsc_options_foreach ()">jsc_options_foreach</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Commandline-option-parser.html#GOptionGroup"><span class="returnvalue">GOptionGroup</span></a> *
</td>
<td class="function_name">
<a class="link" href="jsc-glib-4.0-JSCOptions.html#jsc-options-get-option-group" title="jsc_options_get_option_group ()">jsc_options_get_option_group</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="jsc-glib-4.0-JSCOptions.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
Alberto Garcia's avatar
Alberto Garcia committed
185 186
<col width="150px" class="other_proto_type">
<col class="other_proto_name">
Alberto Garcia's avatar
Alberto Garcia committed
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="jsc-glib-4.0-JSCOptions.html#JSCOptionType" title="enum JSCOptionType">JSCOptionType</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="jsc-glib-4.0-JSCOptions.html#JSC-OPTIONS-USE-JIT:CAPS" title="JSC_OPTIONS_USE_JIT">JSC_OPTIONS_USE_JIT</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="jsc-glib-4.0-JSCOptions.html#JSC-OPTIONS-USE-DFG:CAPS" title="JSC_OPTIONS_USE_DFG">JSC_OPTIONS_USE_DFG</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="jsc-glib-4.0-JSCOptions.html#JSC-OPTIONS-USE-FTL:CAPS" title="JSC_OPTIONS_USE_FTL">JSC_OPTIONS_USE_FTL</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="jsc-glib-4.0-JSCOptions.html#JSC-OPTIONS-USE-LLINT:CAPS" title="JSC_OPTIONS_USE_LLINT">JSC_OPTIONS_USE_LLINT</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="jsc-glib-4.0-JSCOptions.description"></a><h2>Description</h2>
<p>JavaScript options allow changing the behavior of the JavaScript engine.
Alberto Garcia's avatar
Alberto Garcia committed
215
They affect the way the engine works, so the options must be set
Alberto Garcia's avatar
Alberto Garcia committed
216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957
at the very beginning of the program execution, before any other JavaScript
API call. Most of the options are only useful for testing and debugging.
Only a few of them are documented; you can use the undocumented options at
your own risk. (You can find the list of options in the WebKit source code).</p>
<p>The API allows to set and get any option using the types defined in <a class="link" href="jsc-glib-4.0-JSCOptions.html#JSCOptionType" title="enum JSCOptionType"><span class="type">JSCOptionType</span></a>.
You can also iterate all the available options using <a class="link" href="jsc-glib-4.0-JSCOptions.html#jsc-options-foreach" title="jsc_options_foreach ()"><code class="function">jsc_options_foreach()</code></a> and
passing a <a class="link" href="jsc-glib-4.0-JSCOptions.html#JSCOptionsFunc" title="JSCOptionsFunc ()"><span class="type">JSCOptionsFunc</span></a> callback. If your application uses <a href="../glib/glib-Commandline-option-parser.html#GOptionContext"><span class="type">GOptionContext</span></a> to handle
command line arguments, you can easily integrate the JSCOptions by adding the
<a href="../glib/glib-Commandline-option-parser.html#GOptionGroup"><span class="type">GOptionGroup</span></a> returned by <a class="link" href="jsc-glib-4.0-JSCOptions.html#jsc-options-get-option-group" title="jsc_options_get_option_group ()"><code class="function">jsc_options_get_option_group()</code></a>.</p>
</div>
<div class="refsect1">
<a name="jsc-glib-4.0-JSCOptions.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="jsc-options-set-boolean"></a><h3>jsc_options_set_boolean ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
jsc_options_set_boolean (<em class="parameter"><code>const <span class="type">char</span> *option</code></em>,
                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> value</code></em>);</pre>
<p>Set <em class="parameter"><code>option</code></em>
 as a <a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> value.</p>
<div class="refsect3">
<a name="jsc-options-set-boolean.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>option</p></td>
<td class="parameter_description"><p>the option identifier</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>the value to set</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="jsc-options-set-boolean.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if option was correctly set or <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-24.html#api-index-2.24">2.24</a></p>
</div>
<hr>
<div class="refsect2">
<a name="jsc-options-get-boolean"></a><h3>jsc_options_get_boolean ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
jsc_options_get_boolean (<em class="parameter"><code>const <span class="type">char</span> *option</code></em>,
                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *value</code></em>);</pre>
<p>Get <em class="parameter"><code>option</code></em>
 as a <a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> value.</p>
<div class="refsect3">
<a name="jsc-options-get-boolean.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>option</p></td>
<td class="parameter_description"><p>the option identifier</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>return location for the option value. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="jsc-options-get-boolean.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>value</code></em>
has been set or <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if the option doesn't exist</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-24.html#api-index-2.24">2.24</a></p>
</div>
<hr>
<div class="refsect2">
<a name="jsc-options-set-int"></a><h3>jsc_options_set_int ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
jsc_options_set_int (<em class="parameter"><code>const <span class="type">char</span> *option</code></em>,
                     <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> value</code></em>);</pre>
<p>Set <em class="parameter"><code>option</code></em>
 as a <a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> value.</p>
<div class="refsect3">
<a name="jsc-options-set-int.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>option</p></td>
<td class="parameter_description"><p>the option identifier</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>the value to set</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="jsc-options-set-int.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if option was correctly set or <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-24.html#api-index-2.24">2.24</a></p>
</div>
<hr>
<div class="refsect2">
<a name="jsc-options-get-int"></a><h3>jsc_options_get_int ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
jsc_options_get_int (<em class="parameter"><code>const <span class="type">char</span> *option</code></em>,
                     <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *value</code></em>);</pre>
<p>Get <em class="parameter"><code>option</code></em>
 as a <a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> value.</p>
<div class="refsect3">
<a name="jsc-options-get-int.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>option</p></td>
<td class="parameter_description"><p>the option identifier</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>return location for the option value. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="jsc-options-get-int.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>value</code></em>
has been set or <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if the option doesn't exist</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-24.html#api-index-2.24">2.24</a></p>
</div>
<hr>
<div class="refsect2">
<a name="jsc-options-set-uint"></a><h3>jsc_options_set_uint ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
jsc_options_set_uint (<em class="parameter"><code>const <span class="type">char</span> *option</code></em>,
                      <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> value</code></em>);</pre>
<p>Set <em class="parameter"><code>option</code></em>
 as a <a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> value.</p>
<div class="refsect3">
<a name="jsc-options-set-uint.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>option</p></td>
<td class="parameter_description"><p>the option identifier</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>the value to set</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="jsc-options-set-uint.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if option was correctly set or <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-24.html#api-index-2.24">2.24</a></p>
</div>
<hr>
<div class="refsect2">
<a name="jsc-options-get-uint"></a><h3>jsc_options_get_uint ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
jsc_options_get_uint (<em class="parameter"><code>const <span class="type">char</span> *option</code></em>,
                      <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *value</code></em>);</pre>
<p>Get <em class="parameter"><code>option</code></em>
 as a <a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> value.</p>
<div class="refsect3">
<a name="jsc-options-get-uint.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>option</p></td>
<td class="parameter_description"><p>the option identifier</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>return location for the option value. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="jsc-options-get-uint.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>value</code></em>
has been set or <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if the option doesn't exist</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-24.html#api-index-2.24">2.24</a></p>
</div>
<hr>
<div class="refsect2">
<a name="jsc-options-set-size"></a><h3>jsc_options_set_size ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
jsc_options_set_size (<em class="parameter"><code>const <span class="type">char</span> *option</code></em>,
                      <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> value</code></em>);</pre>
<p>Set <em class="parameter"><code>option</code></em>
 as a <a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> value.</p>
<div class="refsect3">
<a name="jsc-options-set-size.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>option</p></td>
<td class="parameter_description"><p>the option identifier</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>the value to set</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="jsc-options-set-size.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if option was correctly set or <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-24.html#api-index-2.24">2.24</a></p>
</div>
<hr>
<div class="refsect2">
<a name="jsc-options-get-size"></a><h3>jsc_options_get_size ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
jsc_options_get_size (<em class="parameter"><code>const <span class="type">char</span> *option</code></em>,
                      <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> *value</code></em>);</pre>
<p>Get <em class="parameter"><code>option</code></em>
 as a <a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> value.</p>
<div class="refsect3">
<a name="jsc-options-get-size.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>option</p></td>
<td class="parameter_description"><p>the option identifier</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>return location for the option value. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="jsc-options-get-size.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>value</code></em>
has been set or <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if the option doesn't exist</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-24.html#api-index-2.24">2.24</a></p>
</div>
<hr>
<div class="refsect2">
<a name="jsc-options-set-double"></a><h3>jsc_options_set_double ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
jsc_options_set_double (<em class="parameter"><code>const <span class="type">char</span> *option</code></em>,
                        <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> value</code></em>);</pre>
<p>Set <em class="parameter"><code>option</code></em>
 as a <a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> value.</p>
<div class="refsect3">
<a name="jsc-options-set-double.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>option</p></td>
<td class="parameter_description"><p>the option identifier</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>the value to set</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="jsc-options-set-double.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if option was correctly set or <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-24.html#api-index-2.24">2.24</a></p>
</div>
<hr>
<div class="refsect2">
<a name="jsc-options-get-double"></a><h3>jsc_options_get_double ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
jsc_options_get_double (<em class="parameter"><code>const <span class="type">char</span> *option</code></em>,
                        <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *value</code></em>);</pre>
<p>Get <em class="parameter"><code>option</code></em>
 as a <a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> value.</p>
<div class="refsect3">
<a name="jsc-options-get-double.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>option</p></td>
<td class="parameter_description"><p>the option identifier</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>return location for the option value. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="jsc-options-get-double.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>value</code></em>
has been set or <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if the option doesn't exist</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-24.html#api-index-2.24">2.24</a></p>
</div>
<hr>
<div class="refsect2">
<a name="jsc-options-set-string"></a><h3>jsc_options_set_string ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
jsc_options_set_string (<em class="parameter"><code>const <span class="type">char</span> *option</code></em>,
                        <em class="parameter"><code>const <span class="type">char</span> *value</code></em>);</pre>
<p>Set <em class="parameter"><code>option</code></em>
 as a string.</p>
<div class="refsect3">
<a name="jsc-options-set-string.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>option</p></td>
<td class="parameter_description"><p>the option identifier</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>the value to set</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="jsc-options-set-string.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if option was correctly set or <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-24.html#api-index-2.24">2.24</a></p>
</div>
<hr>
<div class="refsect2">
<a name="jsc-options-get-string"></a><h3>jsc_options_get_string ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
jsc_options_get_string (<em class="parameter"><code>const <span class="type">char</span> *option</code></em>,
                        <em class="parameter"><code><span class="type">char</span> **value</code></em>);</pre>
<p>Get <em class="parameter"><code>option</code></em>
 as a string.</p>
<div class="refsect3">
<a name="jsc-options-get-string.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>option</p></td>
<td class="parameter_description"><p>the option identifier</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>return location for the option value. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="jsc-options-get-string.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>value</code></em>
has been set or <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if the option doesn't exist</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-24.html#api-index-2.24">2.24</a></p>
</div>
<hr>
<div class="refsect2">
<a name="jsc-options-set-range-string"></a><h3>jsc_options_set_range_string ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
jsc_options_set_range_string (<em class="parameter"><code>const <span class="type">char</span> *option</code></em>,
                              <em class="parameter"><code>const <span class="type">char</span> *value</code></em>);</pre>
<p>Set <em class="parameter"><code>option</code></em>
 as a range string. The string must be in the
format <span class="emphasis"><em>[!]&lt;low&gt;[:&lt;high&gt;]</em></span> where low and high are <a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> values.
Values between low and high (both included) will be considered in
the range, unless <span class="emphasis"><em>!</em></span> is used to invert the range.</p>
<div class="refsect3">
<a name="jsc-options-set-range-string.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>option</p></td>
<td class="parameter_description"><p>the option identifier</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>the value to set</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="jsc-options-set-range-string.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if option was correctly set or <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-24.html#api-index-2.24">2.24</a></p>
</div>
<hr>
<div class="refsect2">
<a name="jsc-options-get-range-string"></a><h3>jsc_options_get_range_string ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
jsc_options_get_range_string (<em class="parameter"><code>const <span class="type">char</span> *option</code></em>,
                              <em class="parameter"><code><span class="type">char</span> **value</code></em>);</pre>
<p>Get <em class="parameter"><code>option</code></em>
 as a range string. The string must be in the
format <span class="emphasis"><em>[!]&lt;low&gt;[:&lt;high&gt;]</em></span> where low and high are <a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> values.
Values between low and high (both included) will be considered in
the range, unless <span class="emphasis"><em>!</em></span> is used to invert the range.</p>
<div class="refsect3">
<a name="jsc-options-get-range-string.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>option</p></td>
<td class="parameter_description"><p>the option identifier</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>return location for the option value. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="jsc-options-get-range-string.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>value</code></em>
has been set or <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if the option doesn't exist</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-24.html#api-index-2.24">2.24</a></p>
</div>
<hr>
<div class="refsect2">
<a name="JSCOptionsFunc"></a><h3>JSCOptionsFunc ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
<span class="c_punctuation">(</span>*JSCOptionsFunc<span class="c_punctuation">)</span> (<em class="parameter"><code>const <span class="type">char</span> *option</code></em>,
                   <em class="parameter"><code><a class="link" href="jsc-glib-4.0-JSCOptions.html#JSCOptionType" title="enum JSCOptionType"><span class="type">JSCOptionType</span></a> type</code></em>,
                   <em class="parameter"><code>const <span class="type">char</span> *description</code></em>,
                   <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>Function used to iterate options.</p>
<p>Not that <em class="parameter"><code>description</code></em>
 string is not localized.</p>
<div class="refsect3">
<a name="JSCOptionsFunc.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>option</p></td>
<td class="parameter_description"><p>the option name</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>type</p></td>
<td class="parameter_description"><p>the option <a class="link" href="jsc-glib-4.0-JSCOptions.html#JSCOptionType" title="enum JSCOptionType"><span class="type">JSCOptionType</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>description</p></td>
<td class="parameter_description"><p>the option description, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>user data</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="JSCOptionsFunc.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to stop the iteration, or <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-24.html#api-index-2.24">2.24</a></p>
</div>
<hr>
<div class="refsect2">
<a name="jsc-options-foreach"></a><h3>jsc_options_foreach ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
jsc_options_foreach (<em class="parameter"><code><a class="link" href="jsc-glib-4.0-JSCOptions.html#JSCOptionsFunc" title="JSCOptionsFunc ()"><span class="type">JSCOptionsFunc</span></a> function</code></em>,
                     <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>Iterates all available options calling <em class="parameter"><code>function</code></em>
 for each one. Iteration can
stop early if <em class="parameter"><code>function</code></em>
 returns <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.</p>
<div class="refsect3">
<a name="jsc-options-foreach.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>function</p></td>
<td class="parameter_description"><p>a <a class="link" href="jsc-glib-4.0-JSCOptions.html#JSCOptionsFunc" title="JSCOptionsFunc ()"><span class="type">JSCOptionsFunc</span></a> callback. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="The callback is valid only during the call to the method."><span class="acronym">scope call</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>callback user data</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-24.html#api-index-2.24">2.24</a></p>
</div>
<hr>
<div class="refsect2">
<a name="jsc-options-get-option-group"></a><h3>jsc_options_get_option_group ()</h3>
<pre class="programlisting"><a href="../glib/glib-Commandline-option-parser.html#GOptionGroup"><span class="returnvalue">GOptionGroup</span></a> *
jsc_options_get_option_group (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>Create a <a href="../glib/glib-Commandline-option-parser.html#GOptionGroup"><span class="type">GOptionGroup</span></a> to handle JSCOptions as command line arguments.
The options will be exposed as command line arguments with the form
<span class="emphasis"><em>--jsc-&lt;option&gt;=&lt;value&gt;</em></span>.
Each entry in the returned <a href="../glib/glib-Commandline-option-parser.html#GOptionGroup"><span class="type">GOptionGroup</span></a> is configured to apply the
corresponding option during command line parsing. Applications only need to
pass the returned group to <a href="../glib/glib-Commandline-option-parser.html#g-option-context-add-group"><code class="function">g_option_context_add_group()</code></a>, and the rest will
be taken care for automatically.</p>
<div class="refsect3">
<a name="jsc-options-get-option-group.returns"></a><h4>Returns</h4>
<p>a <a href="../glib/glib-Commandline-option-parser.html#GOptionGroup"><span class="type">GOptionGroup</span></a> for the JSCOptions. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-24.html#api-index-2.24">2.24</a></p>
</div>
</div>
<div class="refsect1">
<a name="jsc-glib-4.0-JSCOptions.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="JSCOptionType"></a><h3>enum JSCOptionType</h3>
<p>Enum values for options types.</p>
<div class="refsect3">
<a name="JSCOptionType.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="JSC-OPTION-BOOLEAN:CAPS"></a>JSC_OPTION_BOOLEAN</p></td>
<td class="enum_member_description">
<p>A <a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> option type.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="JSC-OPTION-INT:CAPS"></a>JSC_OPTION_INT</p></td>
<td class="enum_member_description">
<p>A <a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> option type.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="JSC-OPTION-UINT:CAPS"></a>JSC_OPTION_UINT</p></td>
<td class="enum_member_description">
<p>A <a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> option type.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="JSC-OPTION-SIZE:CAPS"></a>JSC_OPTION_SIZE</p></td>
<td class="enum_member_description">
<p>A <a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> options type.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="JSC-OPTION-DOUBLE:CAPS"></a>JSC_OPTION_DOUBLE</p></td>
<td class="enum_member_description">
<p>A <a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> options type.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="JSC-OPTION-STRING:CAPS"></a>JSC_OPTION_STRING</p></td>
<td class="enum_member_description">
<p>A string option type.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="JSC-OPTION-RANGE-STRING:CAPS"></a>JSC_OPTION_RANGE_STRING</p></td>
<td class="enum_member_description">
<p>A range string option type.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-24.html#api-index-2.24">2.24</a></p>
</div>
<hr>
<div class="refsect2">
<a name="JSC-OPTIONS-USE-JIT:CAPS"></a><h3>JSC_OPTIONS_USE_JIT</h3>
<pre class="programlisting">#define JSC_OPTIONS_USE_JIT   "useJIT"
</pre>
<p>Allows the executable pages to be allocated for JIT and thunks if <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>.
Option type: <a class="link" href="jsc-glib-4.0-JSCOptions.html#JSC-OPTION-BOOLEAN:CAPS"><code class="literal">JSC_OPTION_BOOLEAN</code></a>
Default value: <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>.</p>
<p class="since">Since: <a class="link" href="api-index-2-24.html#api-index-2.24">2.24</a></p>
</div>
<hr>
<div class="refsect2">
<a name="JSC-OPTIONS-USE-DFG:CAPS"></a><h3>JSC_OPTIONS_USE_DFG</h3>
<pre class="programlisting">#define JSC_OPTIONS_USE_DFG   "useDFGJIT"
</pre>
<p>Allows the DFG JIT to be used if <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>.
Option type: <a class="link" href="jsc-glib-4.0-JSCOptions.html#JSC-OPTION-BOOLEAN:CAPS"><code class="literal">JSC_OPTION_BOOLEAN</code></a>
Default value: <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>.</p>
<p class="since">Since: <a class="link" href="api-index-2-24.html#api-index-2.24">2.24</a></p>
</div>
<hr>
<div class="refsect2">
<a name="JSC-OPTIONS-USE-FTL:CAPS"></a><h3>JSC_OPTIONS_USE_FTL</h3>
<pre class="programlisting">#define JSC_OPTIONS_USE_FTL   "useFTLJIT"
</pre>
<p>Allows the FTL JIT to be used if <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>.
Option type: <a class="link" href="jsc-glib-4.0-JSCOptions.html#JSC-OPTION-BOOLEAN:CAPS"><code class="literal">JSC_OPTION_BOOLEAN</code></a>
Default value: <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>.</p>
<p class="since">Since: <a class="link" href="api-index-2-24.html#api-index-2.24">2.24</a></p>
</div>
<hr>
<div class="refsect2">
<a name="JSC-OPTIONS-USE-LLINT:CAPS"></a><h3>JSC_OPTIONS_USE_LLINT</h3>
<pre class="programlisting">#define JSC_OPTIONS_USE_LLINT "useLLInt"
</pre>
<p>Allows the LLINT to be used if <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>.
Option type: <a class="link" href="jsc-glib-4.0-JSCOptions.html#JSC-OPTION-BOOLEAN:CAPS"><code class="literal">JSC_OPTION_BOOLEAN</code></a>
Default value: <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>.</p>
<p class="since">Since: <a class="link" href="api-index-2-24.html#api-index-2.24">2.24</a></p>
</div>
</div>
</div>
<div class="footer">
Alberto Garcia's avatar
Alberto Garcia committed
958
<hr>Generated by GTK-Doc V1.33.0</div>
Alberto Garcia's avatar
Alberto Garcia committed
959 960
</body>
</html>