/usr/share/gtk-doc/html/libinfinity-0.6/InfAdoptedRequest.html is in libinfinity-0.6-doc 0.6.7-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 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 38 39 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 185 186 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 215 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 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>InfAdoptedRequest: libinfinity-0.6 Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="libinfinity-0.6 Reference Manual">
<link rel="up" href="ch03.html" title="Libinfinity's adOPTed implementation">
<link rel="prev" href="InfAdoptedRequestLog.html" title="InfAdoptedRequestLog">
<link rel="next" href="InfAdoptedOperation.html" title="InfAdoptedOperation">
<meta name="generator" content="GTK-Doc V1.24 (XML mode)">
<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="#InfAdoptedRequest.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
<a href="#InfAdoptedRequest.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties"> <span class="dim">|</span>
<a href="#InfAdoptedRequest.properties" class="shortcut">Properties</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="ch03.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="InfAdoptedRequestLog.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="InfAdoptedOperation.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="InfAdoptedRequest"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="InfAdoptedRequest.top_of_page"></a>InfAdoptedRequest</span></h2>
<p>InfAdoptedRequest — Request processed by <a class="link" href="InfAdoptedAlgorithm.html" title="InfAdoptedAlgorithm"><span class="type">InfAdoptedAlgorithm</span></a>.</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="InfAdoptedRequest.stability-level"></a><h2>Stability Level</h2>
<a href="http://foldoc.org/Unstable"><span class="acronym">Unstable</span></a>, unless otherwise indicated
</div>
<div class="refsect1">
<a name="InfAdoptedRequest.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="returnvalue">InfAdoptedRequest</span></a> *
</td>
<td class="function_name">
<a class="link" href="InfAdoptedRequest.html#inf-adopted-request-new-do" title="inf_adopted_request_new_do ()">inf_adopted_request_new_do</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="returnvalue">InfAdoptedRequest</span></a> *
</td>
<td class="function_name">
<a class="link" href="InfAdoptedRequest.html#inf-adopted-request-new-undo" title="inf_adopted_request_new_undo ()">inf_adopted_request_new_undo</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="returnvalue">InfAdoptedRequest</span></a> *
</td>
<td class="function_name">
<a class="link" href="InfAdoptedRequest.html#inf-adopted-request-new-redo" title="inf_adopted_request_new_redo ()">inf_adopted_request_new_redo</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="returnvalue">InfAdoptedRequest</span></a> *
</td>
<td class="function_name">
<a class="link" href="InfAdoptedRequest.html#inf-adopted-request-copy" title="inf_adopted_request_copy ()">inf_adopted_request_copy</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="InfAdoptedRequest.html#InfAdoptedRequestType" title="enum InfAdoptedRequestType"><span class="returnvalue">InfAdoptedRequestType</span></a>
</td>
<td class="function_name">
<a class="link" href="InfAdoptedRequest.html#inf-adopted-request-get-request-type" title="inf_adopted_request_get_request_type ()">inf_adopted_request_get_request_type</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="InfAdoptedStateVector.html" title="InfAdoptedStateVector"><span class="returnvalue">InfAdoptedStateVector</span></a> *
</td>
<td class="function_name">
<a class="link" href="InfAdoptedRequest.html#inf-adopted-request-get-vector" title="inf_adopted_request_get_vector ()">inf_adopted_request_get_vector</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">guint</span>
</td>
<td class="function_name">
<a class="link" href="InfAdoptedRequest.html#inf-adopted-request-get-user-id" title="inf_adopted_request_get_user_id ()">inf_adopted_request_get_user_id</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="InfAdoptedOperation.html" title="InfAdoptedOperation"><span class="returnvalue">InfAdoptedOperation</span></a> *
</td>
<td class="function_name">
<a class="link" href="InfAdoptedRequest.html#inf-adopted-request-get-operation" title="inf_adopted_request_get_operation ()">inf_adopted_request_get_operation</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">guint</span>
</td>
<td class="function_name">
<a class="link" href="InfAdoptedRequest.html#inf-adopted-request-get-index" title="inf_adopted_request_get_index ()">inf_adopted_request_get_index</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gint64</span>
</td>
<td class="function_name">
<a class="link" href="InfAdoptedRequest.html#inf-adopted-request-get-receive-time" title="inf_adopted_request_get_receive_time ()">inf_adopted_request_get_receive_time</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gint64</span>
</td>
<td class="function_name">
<a class="link" href="InfAdoptedRequest.html#inf-adopted-request-get-execute-time" title="inf_adopted_request_get_execute_time ()">inf_adopted_request_get_execute_time</a> <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="InfAdoptedRequest.html#inf-adopted-request-set-execute-time" title="inf_adopted_request_set_execute_time ()">inf_adopted_request_set_execute_time</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="InfAdoptedRequest.html#inf-adopted-request-need-concurrency-id" title="inf_adopted_request_need_concurrency_id ()">inf_adopted_request_need_concurrency_id</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="returnvalue">InfAdoptedRequest</span></a> *
</td>
<td class="function_name">
<a class="link" href="InfAdoptedRequest.html#inf-adopted-request-transform" title="inf_adopted_request_transform ()">inf_adopted_request_transform</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="returnvalue">InfAdoptedRequest</span></a> *
</td>
<td class="function_name">
<a class="link" href="InfAdoptedRequest.html#inf-adopted-request-mirror" title="inf_adopted_request_mirror ()">inf_adopted_request_mirror</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="returnvalue">InfAdoptedRequest</span></a> *
</td>
<td class="function_name">
<a class="link" href="InfAdoptedRequest.html#inf-adopted-request-fold" title="inf_adopted_request_fold ()">inf_adopted_request_fold</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="InfAdoptedRequest.html#inf-adopted-request-affects-buffer" title="inf_adopted_request_affects_buffer ()">inf_adopted_request_affects_buffer</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="InfAdoptedRequest.properties"></a><h2>Properties</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="properties_type">
<col width="300px" class="properties_name">
<col width="200px" class="properties_flags">
</colgroup>
<tbody>
<tr>
<td class="property_type"><span class="type">gint64</span></td>
<td class="property_name"><a class="link" href="InfAdoptedRequest.html#InfAdoptedRequest--executed" title="The “executed” property">executed</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type">
<a class="link" href="InfAdoptedOperation.html" title="InfAdoptedOperation"><span class="type">InfAdoptedOperation</span></a> *</td>
<td class="property_name"><a class="link" href="InfAdoptedRequest.html#InfAdoptedRequest--operation" title="The “operation” property">operation</a></td>
<td class="property_flags">Read / Write / Construct Only</td>
</tr>
<tr>
<td class="property_type"><span class="type">gint64</span></td>
<td class="property_name"><a class="link" href="InfAdoptedRequest.html#InfAdoptedRequest--received" title="The “received” property">received</a></td>
<td class="property_flags">Read / Write / Construct Only</td>
</tr>
<tr>
<td class="property_type"><a class="link" href="InfAdoptedRequest.html#InfAdoptedRequestType" title="enum InfAdoptedRequestType"><span class="type">InfAdoptedRequestType</span></a></td>
<td class="property_name"><a class="link" href="InfAdoptedRequest.html#InfAdoptedRequest--type" title="The “type” property">type</a></td>
<td class="property_flags">Read / Write / Construct Only</td>
</tr>
<tr>
<td class="property_type"><span class="type">guint</span></td>
<td class="property_name"><a class="link" href="InfAdoptedRequest.html#InfAdoptedRequest--user-id" title="The “user-id” property">user-id</a></td>
<td class="property_flags">Read / Write / Construct Only</td>
</tr>
<tr>
<td class="property_type">
<a class="link" href="InfAdoptedStateVector.html" title="InfAdoptedStateVector"><span class="type">InfAdoptedStateVector</span></a> *</td>
<td class="property_name"><a class="link" href="InfAdoptedRequest.html#InfAdoptedRequest--vector" title="The “vector” property">vector</a></td>
<td class="property_flags">Read / Write / Construct Only</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="InfAdoptedRequest.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="InfAdoptedRequest.html#InfAdoptedRequestType" title="enum InfAdoptedRequestType">InfAdoptedRequestType</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="InfAdoptedRequest.html#InfAdoptedRequest-struct" title="struct InfAdoptedRequest">InfAdoptedRequest</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="InfAdoptedRequest.html#InfAdoptedRequestClass" title="struct InfAdoptedRequestClass">InfAdoptedRequestClass</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="InfAdoptedRequest.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen"> GEnum
<span class="lineart">╰──</span> InfAdoptedRequestType
GObject
<span class="lineart">╰──</span> InfAdoptedRequest
</pre>
</div>
<div class="refsect1">
<a name="InfAdoptedRequest.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include <libinfinity/adopted/inf-adopted-request.h>
</pre>
</div>
<div class="refsect1">
<a name="InfAdoptedRequest.description"></a><h2>Description</h2>
<p>An <a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> is basically an <a class="link" href="InfAdoptedOperation.html" title="InfAdoptedOperation"><span class="type">InfAdoptedOperation</span></a> with some
metadata used by <a class="link" href="InfAdoptedAlgorithm.html" title="InfAdoptedAlgorithm"><span class="type">InfAdoptedAlgorithm</span></a> to determine which operations to
transform against each other. If the type of the request is
<a class="link" href="InfAdoptedRequest.html#INF-ADOPTED-REQUEST-DO:CAPS"><code class="literal">INF_ADOPTED_REQUEST_DO</code></a>, then it contains the operation to perform,
otherwise it does not because the request does not know the operation, it
is computed by <a class="link" href="InfAdoptedAlgorithm.html" title="InfAdoptedAlgorithm"><span class="type">InfAdoptedAlgorithm</span></a> when required. A <a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a>
also contains the state in which the operation can be applied to the
buffer and the user ID of the <a class="link" href="InfAdoptedUser.html" title="InfAdoptedUser"><span class="type">InfAdoptedUser</span></a> having generated the request.</p>
</div>
<div class="refsect1">
<a name="InfAdoptedRequest.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="inf-adopted-request-new-do"></a><h3>inf_adopted_request_new_do ()</h3>
<pre class="programlisting"><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="returnvalue">InfAdoptedRequest</span></a> *
inf_adopted_request_new_do (<em class="parameter"><code><a class="link" href="InfAdoptedStateVector.html" title="InfAdoptedStateVector"><span class="type">InfAdoptedStateVector</span></a> *vector</code></em>,
<em class="parameter"><code><span class="type">guint</span> user_id</code></em>,
<em class="parameter"><code><a class="link" href="InfAdoptedOperation.html" title="InfAdoptedOperation"><span class="type">InfAdoptedOperation</span></a> *operation</code></em>,
<em class="parameter"><code><span class="type">gint64</span> received</code></em>);</pre>
<p>Creates a new <a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> with type <a class="link" href="InfAdoptedRequest.html#INF-ADOPTED-REQUEST-DO:CAPS"><code class="literal">INF_ADOPTED_REQUEST_DO</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.8.10.2.5"></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>vector</p></td>
<td class="parameter_description"><p>The vector time at which the request was made.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_id</p></td>
<td class="parameter_description"><p>The ID of the user that made the request.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>operation</p></td>
<td class="parameter_description"><p>The operation the user performed.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>received</p></td>
<td class="parameter_description"><p>Time the request was received, in microseconds since the epoch.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.8.10.2.6"></a><h4>Returns</h4>
<p> A new DO request.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-adopted-request-new-undo"></a><h3>inf_adopted_request_new_undo ()</h3>
<pre class="programlisting"><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="returnvalue">InfAdoptedRequest</span></a> *
inf_adopted_request_new_undo (<em class="parameter"><code><a class="link" href="InfAdoptedStateVector.html" title="InfAdoptedStateVector"><span class="type">InfAdoptedStateVector</span></a> *vector</code></em>,
<em class="parameter"><code><span class="type">guint</span> user_id</code></em>,
<em class="parameter"><code><span class="type">gint64</span> received</code></em>);</pre>
<p>Creates a new <a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> with type <a class="link" href="InfAdoptedRequest.html#INF-ADOPTED-REQUEST-UNDO:CAPS"><code class="literal">INF_ADOPTED_REQUEST_UNDO</code></a>.
The operation performed is implicitely defined by reverting the operation
of the associated DO or REDO request, but must still be computed by
<a class="link" href="InfAdoptedAlgorithm.html" title="InfAdoptedAlgorithm"><span class="type">InfAdoptedAlgorithm</span></a>.</p>
<div class="refsect3">
<a name="id-1.4.8.10.3.5"></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>vector</p></td>
<td class="parameter_description"><p>The vector time at which the request was made.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_id</p></td>
<td class="parameter_description"><p>The ID of the user that made the request.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>received</p></td>
<td class="parameter_description"><p>Time the request was received, in microseconds since the epoch.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.8.10.3.6"></a><h4>Returns</h4>
<p> A new UNDO request.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-adopted-request-new-redo"></a><h3>inf_adopted_request_new_redo ()</h3>
<pre class="programlisting"><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="returnvalue">InfAdoptedRequest</span></a> *
inf_adopted_request_new_redo (<em class="parameter"><code><a class="link" href="InfAdoptedStateVector.html" title="InfAdoptedStateVector"><span class="type">InfAdoptedStateVector</span></a> *vector</code></em>,
<em class="parameter"><code><span class="type">guint</span> user_id</code></em>,
<em class="parameter"><code><span class="type">gint64</span> received</code></em>);</pre>
<p>Creates a new <a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> with type <a class="link" href="InfAdoptedRequest.html#INF-ADOPTED-REQUEST-REDO:CAPS"><code class="literal">INF_ADOPTED_REQUEST_REDO</code></a>. The
operation performed is implicitely defined by reverting the operation of
the associated UNDO request, but must still be computed by
<a class="link" href="InfAdoptedAlgorithm.html" title="InfAdoptedAlgorithm"><span class="type">InfAdoptedAlgorithm</span></a>.</p>
<div class="refsect3">
<a name="id-1.4.8.10.4.5"></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>vector</p></td>
<td class="parameter_description"><p>The vector time at which the request was made.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_id</p></td>
<td class="parameter_description"><p>The ID of the user that made the request.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>received</p></td>
<td class="parameter_description"><p>Time the request was received, in microseconds since the epoch.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.8.10.4.6"></a><h4>Returns</h4>
<p> A new REDO request.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-adopted-request-copy"></a><h3>inf_adopted_request_copy ()</h3>
<pre class="programlisting"><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="returnvalue">InfAdoptedRequest</span></a> *
inf_adopted_request_copy (<em class="parameter"><code><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> *request</code></em>);</pre>
<p>Creates a copy of <em class="parameter"><code>request</code></em>
with an initial reference count of 1.</p>
<div class="refsect3">
<a name="id-1.4.8.10.5.5"></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>request</p></td>
<td class="parameter_description"><p>The <a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> to copy.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.8.10.5.6"></a><h4>Returns</h4>
<p> A new <a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-adopted-request-get-request-type"></a><h3>inf_adopted_request_get_request_type ()</h3>
<pre class="programlisting"><a class="link" href="InfAdoptedRequest.html#InfAdoptedRequestType" title="enum InfAdoptedRequestType"><span class="returnvalue">InfAdoptedRequestType</span></a>
inf_adopted_request_get_request_type (<em class="parameter"><code><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> *request</code></em>);</pre>
<p>Returns the request type of <em class="parameter"><code>request</code></em>
.</p>
<div class="refsect3">
<a name="id-1.4.8.10.6.5"></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>request</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.8.10.6.6"></a><h4>Returns</h4>
<p> The type of <em class="parameter"><code>request</code></em>
.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-adopted-request-get-vector"></a><h3>inf_adopted_request_get_vector ()</h3>
<pre class="programlisting"><a class="link" href="InfAdoptedStateVector.html" title="InfAdoptedStateVector"><span class="returnvalue">InfAdoptedStateVector</span></a> *
inf_adopted_request_get_vector (<em class="parameter"><code><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> *request</code></em>);</pre>
<p>Returns the vector time the request was made i.e. its operation can be
applied to the buffer.</p>
<div class="refsect3">
<a name="id-1.4.8.10.7.5"></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>request</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.8.10.7.6"></a><h4>Returns</h4>
<p> The state vector of <em class="parameter"><code>request</code></em>
. The returned value should
not be freed, it is owned by the <a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-adopted-request-get-user-id"></a><h3>inf_adopted_request_get_user_id ()</h3>
<pre class="programlisting"><span class="returnvalue">guint</span>
inf_adopted_request_get_user_id (<em class="parameter"><code><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> *request</code></em>);</pre>
<p>Returns the user ID of the user that issued <em class="parameter"><code>request</code></em>
.</p>
<div class="refsect3">
<a name="id-1.4.8.10.8.5"></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>request</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.8.10.8.6"></a><h4>Returns</h4>
<p> The request's user ID.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-adopted-request-get-operation"></a><h3>inf_adopted_request_get_operation ()</h3>
<pre class="programlisting"><a class="link" href="InfAdoptedOperation.html" title="InfAdoptedOperation"><span class="returnvalue">InfAdoptedOperation</span></a> *
inf_adopted_request_get_operation (<em class="parameter"><code><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> *request</code></em>);</pre>
<p>Returns the operation carried by the request. This can only be called if
the request's type is <a class="link" href="InfAdoptedRequest.html#INF-ADOPTED-REQUEST-DO:CAPS"><code class="literal">INF_ADOPTED_REQUEST_DO</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.8.10.9.5"></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>request</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.8.10.9.6"></a><h4>Returns</h4>
<p> The request's operation.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-adopted-request-get-index"></a><h3>inf_adopted_request_get_index ()</h3>
<pre class="programlisting"><span class="returnvalue">guint</span>
inf_adopted_request_get_index (<em class="parameter"><code><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> *request</code></em>);</pre>
<p>Returns the vector time component of the request's own users. This
corresponds to the request index by that user.</p>
<div class="refsect3">
<a name="id-1.4.8.10.10.5"></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>request</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.8.10.10.6"></a><h4>Returns</h4>
<p> The vector time component of the request's own user.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-adopted-request-get-receive-time"></a><h3>inf_adopted_request_get_receive_time ()</h3>
<pre class="programlisting"><span class="returnvalue">gint64</span>
inf_adopted_request_get_receive_time (<em class="parameter"><code><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> *request</code></em>);</pre>
<p>Returns the time when the request was received, or, if it's a local
request, generated. The time is given in microseconds since January 1,
1970.</p>
<div class="refsect3">
<a name="id-1.4.8.10.11.5"></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>request</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.8.10.11.6"></a><h4>Returns</h4>
<p> Time when the request was received.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-adopted-request-get-execute-time"></a><h3>inf_adopted_request_get_execute_time ()</h3>
<pre class="programlisting"><span class="returnvalue">gint64</span>
inf_adopted_request_get_execute_time (<em class="parameter"><code><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> *request</code></em>);</pre>
<p>Returns the time when the request was executed by an <a class="link" href="InfAdoptedAlgorithm.html" title="InfAdoptedAlgorithm"><span class="type">InfAdoptedAlgorithm</span></a>,
see the <span class="type">“execute-request”</span> signal. The time is given in
microseconds since January 1, 1970. If the request was not yet executed,
the function returns 0.</p>
<div class="refsect3">
<a name="id-1.4.8.10.12.5"></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>request</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.8.10.12.6"></a><h4>Returns</h4>
<p> The time when the function was executed, or 0.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-adopted-request-set-execute-time"></a><h3>inf_adopted_request_set_execute_time ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
inf_adopted_request_set_execute_time (<em class="parameter"><code><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> *request</code></em>,
<em class="parameter"><code><span class="type">gint64</span> time</code></em>);</pre>
<p>Sets the time when <em class="parameter"><code>request</code></em>
was executed. Usually this is called by
<a class="link" href="InfAdoptedAlgorithm.html" title="InfAdoptedAlgorithm"><span class="type">InfAdoptedAlgorithm</span></a> when it executes a request, i.e. translates it to the
current state of the document.</p>
<div class="refsect3">
<a name="id-1.4.8.10.13.5"></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>request</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>time</p></td>
<td class="parameter_description"><p>A time in microseconds since January 1, 1970.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-adopted-request-need-concurrency-id"></a><h3>inf_adopted_request_need_concurrency_id ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
inf_adopted_request_need_concurrency_id
(<em class="parameter"><code><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> *request</code></em>,
<em class="parameter"><code><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> *against</code></em>);</pre>
<p>Returns whether transforming <em class="parameter"><code>request</code></em>
against <em class="parameter"><code>against</code></em>
requires a
concurrency ID. If this function returns <code class="literal">TRUE</code>, you must provide the
<em class="parameter"><code>request_lcs</code></em>
and <em class="parameter"><code>against_lcs</code></em>
parameters when calling
<a class="link" href="InfAdoptedRequest.html#inf-adopted-request-transform" title="inf_adopted_request_transform ()"><code class="function">inf_adopted_request_transform()</code></a>.</p>
<p>Both request need to be of type <a class="link" href="InfAdoptedRequest.html#INF-ADOPTED-REQUEST-DO:CAPS"><code class="literal">INF_ADOPTED_REQUEST_DO</code></a>, and their state
vectors must be the same.</p>
<div class="refsect3">
<a name="id-1.4.8.10.14.6"></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>request</p></td>
<td class="parameter_description"><p>The request to transform.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>against</p></td>
<td class="parameter_description"><p>The request to transform against.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.8.10.14.7"></a><h4>Returns</h4>
<p> Whether transformation of <em class="parameter"><code>request</code></em>
against <em class="parameter"><code>against</code></em>
requires a
concurrency ID.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-adopted-request-transform"></a><h3>inf_adopted_request_transform ()</h3>
<pre class="programlisting"><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="returnvalue">InfAdoptedRequest</span></a> *
inf_adopted_request_transform (<em class="parameter"><code><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> *request</code></em>,
<em class="parameter"><code><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> *against</code></em>,
<em class="parameter"><code><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> *request_lcs</code></em>,
<em class="parameter"><code><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> *against_lcs</code></em>);</pre>
<p>Transforms the operation of <em class="parameter"><code>request</code></em>
against the operation of <em class="parameter"><code>against</code></em>
.
Both requests must be of type <a class="link" href="InfAdoptedRequest.html#INF-ADOPTED-REQUEST-DO:CAPS"><code class="literal">INF_ADOPTED_REQUEST_DO</code></a>, and their state
vectors must be the same.</p>
<p>If the function <a class="link" href="InfAdoptedRequest.html#inf-adopted-request-need-concurrency-id" title="inf_adopted_request_need_concurrency_id ()"><code class="function">inf_adopted_request_need_concurrency_id()</code></a> returns <code class="literal">TRUE</code>,
<em class="parameter"><code>request_lcs</code></em>
and <em class="parameter"><code>against_lcs</code></em>
must not be <code class="literal">NULL</code>.</p>
<div class="refsect3">
<a name="id-1.4.8.10.15.6"></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>request</p></td>
<td class="parameter_description"><p>The request to transform.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>against</p></td>
<td class="parameter_description"><p>The request to transform against.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>request_lcs</p></td>
<td class="parameter_description"><p>The request to transform in a previous state, or <code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>against_lcs</p></td>
<td class="parameter_description"><p>The request to transform against in a previous state, or
<code class="literal">NULL</code>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.8.10.15.7"></a><h4>Returns</h4>
<p> A new <a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a>, the result of the transformation.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-adopted-request-mirror"></a><h3>inf_adopted_request_mirror ()</h3>
<pre class="programlisting"><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="returnvalue">InfAdoptedRequest</span></a> *
inf_adopted_request_mirror (<em class="parameter"><code><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> *request</code></em>,
<em class="parameter"><code><span class="type">guint</span> by</code></em>);</pre>
<p>Mirrors <em class="parameter"><code>request</code></em>
as described in "Reducing the Problems of Group Undo" by
Matthias Ressel and Rul Gunzenhäuser
(http://portal.acm.org/citation.cfm?doid=320297.320312).</p>
<p>Note that <em class="parameter"><code>by</code></em>
is the total amount of requests between the original and
mirrored request, and thus equivalent to 2j-1 in the paper's definition.</p>
<p><em class="parameter"><code>request</code></em>
must be of type <a class="link" href="InfAdoptedRequest.html#INF-ADOPTED-REQUEST-DO:CAPS"><code class="literal">INF_ADOPTED_REQUEST_DO</code></a> and its operation must
be reversible.</p>
<div class="refsect3">
<a name="id-1.4.8.10.16.7"></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>request</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>by</p></td>
<td class="parameter_description"><p>The number of requests between the original and the mirrored
operation.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.8.10.16.8"></a><h4>Returns</h4>
<p> The mirrored request as a new <a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-adopted-request-fold"></a><h3>inf_adopted_request_fold ()</h3>
<pre class="programlisting"><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="returnvalue">InfAdoptedRequest</span></a> *
inf_adopted_request_fold (<em class="parameter"><code><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> *request</code></em>,
<em class="parameter"><code><span class="type">guint</span> into</code></em>,
<em class="parameter"><code><span class="type">guint</span> by</code></em>);</pre>
<p>Folds <em class="parameter"><code>request</code></em>
as described in "Reducing the Problems of Group Undo" by
Matthias Ressel and Rul Gunzenhäuser
(http://portal.acm.org/citation.cfm?doid=320297.320312).</p>
<p>Note that <em class="parameter"><code>by</code></em>
is the total amount of requests between the original and
the fold request, and thus equivalent to 2j in the paper's definition.</p>
<p><em class="parameter"><code>into</code></em>
must not be the same user as the one that issued <em class="parameter"><code>request</code></em>
.</p>
<div class="refsect3">
<a name="id-1.4.8.10.17.7"></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>request</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>into</p></td>
<td class="parameter_description"><p>The direction into which to fold.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>by</p></td>
<td class="parameter_description"><p>The number of operations between the original and the fold request.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.8.10.17.8"></a><h4>Returns</h4>
<p> The folded request as a new <a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a>.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="inf-adopted-request-affects-buffer"></a><h3>inf_adopted_request_affects_buffer ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
inf_adopted_request_affects_buffer (<em class="parameter"><code><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> *request</code></em>);</pre>
<p>Returns whether this request, when applied, changes the content of the
buffer. If this is a <a class="link" href="InfAdoptedRequest.html#INF-ADOPTED-REQUEST-UNDO:CAPS"><code class="literal">INF_ADOPTED_REQUEST_UNDO</code></a> or <a class="link" href="InfAdoptedRequest.html#INF-ADOPTED-REQUEST-REDO:CAPS"><code class="literal">INF_ADOPTED_REQUEST_REDO</code></a>
request, than it always affects the buffer, because only requests that
affect the buffer can be undone or redone. If it is a
<a class="link" href="InfAdoptedRequest.html#INF-ADOPTED-REQUEST-DO:CAPS"><code class="literal">INF_ADOPTED_REQUEST_DO</code></a> request, than it returns whether its operation
has the <a class="link" href="InfAdoptedOperation.html#INF-ADOPTED-OPERATION-AFFECTS-BUFFER:CAPS"><code class="literal">INF_ADOPTED_OPERATION_AFFECTS_BUFFER</code></a> flag set.</p>
<div class="refsect3">
<a name="id-1.4.8.10.18.5"></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>request</p></td>
<td class="parameter_description"><p>A <a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.8.10.18.6"></a><h4>Returns</h4>
<p> Whether <em class="parameter"><code>request</code></em>
affects the session's buffer.</p>
</div>
</div>
</div>
<div class="refsect1">
<a name="InfAdoptedRequest.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="InfAdoptedRequestType"></a><h3>enum InfAdoptedRequestType</h3>
<p>Possible types for an <a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a>.</p>
<div class="refsect3">
<a name="id-1.4.8.11.2.4"></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="INF-ADOPTED-REQUEST-DO:CAPS"></a>INF_ADOPTED_REQUEST_DO</p></td>
<td class="enum_member_description">
<p>A request that performs an operation.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="INF-ADOPTED-REQUEST-UNDO:CAPS"></a>INF_ADOPTED_REQUEST_UNDO</p></td>
<td class="enum_member_description">
<p>A request that undoes a previously applied
request.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="INF-ADOPTED-REQUEST-REDO:CAPS"></a>INF_ADOPTED_REQUEST_REDO</p></td>
<td class="enum_member_description">
<p>A request that redoes a previously undone
request.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="InfAdoptedRequest-struct"></a><h3>struct InfAdoptedRequest</h3>
<pre class="programlisting">struct InfAdoptedRequest;</pre>
<p><a class="link" href="InfAdoptedRequest.html" title="InfAdoptedRequest"><span class="type">InfAdoptedRequest</span></a> is an opaque data type. You should only access it via
the public API functions.</p>
</div>
<hr>
<div class="refsect2">
<a name="InfAdoptedRequestClass"></a><h3>struct InfAdoptedRequestClass</h3>
<pre class="programlisting">struct InfAdoptedRequestClass {
};
</pre>
<p>This structure does not contain any public fields.</p>
</div>
</div>
<div class="refsect1">
<a name="InfAdoptedRequest.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="InfAdoptedRequest--executed"></a><h3>The <code class="literal">“executed”</code> property</h3>
<pre class="programlisting"> “executed” <span class="type">gint64</span></pre>
<p>Time the request was executed, in microseconds.</p>
<p>Flags: Read / Write</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="InfAdoptedRequest--operation"></a><h3>The <code class="literal">“operation”</code> property</h3>
<pre class="programlisting"> “operation” <a class="link" href="InfAdoptedOperation.html" title="InfAdoptedOperation"><span class="type">InfAdoptedOperation</span></a> *</pre>
<p>The operation of the request.</p>
<p>Flags: Read / Write / Construct Only</p>
</div>
<hr>
<div class="refsect2">
<a name="InfAdoptedRequest--received"></a><h3>The <code class="literal">“received”</code> property</h3>
<pre class="programlisting"> “received” <span class="type">gint64</span></pre>
<p>Time the request was received, in microseconds.</p>
<p>Flags: Read / Write / Construct Only</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="InfAdoptedRequest--type"></a><h3>The <code class="literal">“type”</code> property</h3>
<pre class="programlisting"> “type” <a class="link" href="InfAdoptedRequest.html#InfAdoptedRequestType" title="enum InfAdoptedRequestType"><span class="type">InfAdoptedRequestType</span></a></pre>
<p>The type of the operation.</p>
<p>Flags: Read / Write / Construct Only</p>
<p>Default value: INF_ADOPTED_REQUEST_DO</p>
</div>
<hr>
<div class="refsect2">
<a name="InfAdoptedRequest--user-id"></a><h3>The <code class="literal">“user-id”</code> property</h3>
<pre class="programlisting"> “user-id” <span class="type">guint</span></pre>
<p>The ID of the user that made the request.</p>
<p>Flags: Read / Write / Construct Only</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="InfAdoptedRequest--vector"></a><h3>The <code class="literal">“vector”</code> property</h3>
<pre class="programlisting"> “vector” <a class="link" href="InfAdoptedStateVector.html" title="InfAdoptedStateVector"><span class="type">InfAdoptedStateVector</span></a> *</pre>
<p>The vector time at which the request was made.</p>
<p>Flags: Read / Write / Construct Only</p>
</div>
</div>
<div class="refsect1">
<a name="InfAdoptedRequest.see-also"></a><h2>See Also</h2>
<p><a class="link" href="InfAdoptedAlgorithm.html" title="InfAdoptedAlgorithm"><span class="type">InfAdoptedAlgorithm</span></a></p>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.24</div>
</body>
</html>
|