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 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>entity</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
<link rel="start" href="index.html" title="libuser Reference Manual">
<link rel="up" href="ch01.html" title="libuser">
<link rel="prev" href="libuser-value.html" title="value">
<link rel="next" href="libuser-error.html" title="error">
<meta name="generator" content="GTK-Doc V1.9 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="ch01.html" title="libuser">
</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="2">
<tr valign="middle">
<td><a accesskey="p" href="libuser-value.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">libuser Reference Manual</th>
<td><a accesskey="n" href="libuser-error.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id3079393" class="shortcut">Top</a>
 | 
<a href="#id3080015" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="libuser-entity"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id3079393"></a><span class="refentrytitle">entity</span>
</h2>
<p>entity —
Functions for manipulating lu_ent structures.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">
#define <a class="link" href="libuser-entity.html#LU-USERNAME:CAPS">LU_USERNAME</a>
#define <a class="link" href="libuser-entity.html#LU-USERPASSWORD:CAPS">LU_USERPASSWORD</a>
#define <a class="link" href="libuser-entity.html#LU-UIDNUMBER:CAPS">LU_UIDNUMBER</a>
#define <a class="link" href="libuser-entity.html#LU-GIDNUMBER:CAPS">LU_GIDNUMBER</a>
#define <a class="link" href="libuser-entity.html#LU-GECOS:CAPS">LU_GECOS</a>
#define <a class="link" href="libuser-entity.html#LU-HOMEDIRECTORY:CAPS">LU_HOMEDIRECTORY</a>
#define <a class="link" href="libuser-entity.html#LU-LOGINSHELL:CAPS">LU_LOGINSHELL</a>
#define <a class="link" href="libuser-entity.html#LU-GROUPNAME:CAPS">LU_GROUPNAME</a>
#define <a class="link" href="libuser-entity.html#LU-GROUPPASSWORD:CAPS">LU_GROUPPASSWORD</a>
#define <a class="link" href="libuser-entity.html#LU-MEMBERNAME:CAPS">LU_MEMBERNAME</a>
#define <a class="link" href="libuser-entity.html#LU-ADMINISTRATORNAME:CAPS">LU_ADMINISTRATORNAME</a>
#define <a class="link" href="libuser-entity.html#LU-SHADOWNAME:CAPS">LU_SHADOWNAME</a>
#define <a class="link" href="libuser-entity.html#LU-SHADOWPASSWORD:CAPS">LU_SHADOWPASSWORD</a>
#define <a class="link" href="libuser-entity.html#LU-SHADOWLASTCHANGE:CAPS">LU_SHADOWLASTCHANGE</a>
#define <a class="link" href="libuser-entity.html#LU-SHADOWMIN:CAPS">LU_SHADOWMIN</a>
#define <a class="link" href="libuser-entity.html#LU-SHADOWMAX:CAPS">LU_SHADOWMAX</a>
#define <a class="link" href="libuser-entity.html#LU-SHADOWWARNING:CAPS">LU_SHADOWWARNING</a>
#define <a class="link" href="libuser-entity.html#LU-SHADOWINACTIVE:CAPS">LU_SHADOWINACTIVE</a>
#define <a class="link" href="libuser-entity.html#LU-SHADOWEXPIRE:CAPS">LU_SHADOWEXPIRE</a>
#define <a class="link" href="libuser-entity.html#LU-SHADOWFLAG:CAPS">LU_SHADOWFLAG</a>
#define <a class="link" href="libuser-entity.html#LU-COMMONNAME:CAPS">LU_COMMONNAME</a>
#define <a class="link" href="libuser-entity.html#LU-GIVENNAME:CAPS">LU_GIVENNAME</a>
#define <a class="link" href="libuser-entity.html#LU-SN:CAPS">LU_SN</a>
#define <a class="link" href="libuser-entity.html#LU-ROOMNUMBER:CAPS">LU_ROOMNUMBER</a>
#define <a class="link" href="libuser-entity.html#LU-TELEPHONENUMBER:CAPS">LU_TELEPHONENUMBER</a>
#define <a class="link" href="libuser-entity.html#LU-HOMEPHONE:CAPS">LU_HOMEPHONE</a>
#define <a class="link" href="libuser-entity.html#LU-EMAIL:CAPS">LU_EMAIL</a>
lu_ent_t* <a class="link" href="libuser-entity.html#lu-ent-new">lu_ent_new</a> (void);
void <a class="link" href="libuser-entity.html#lu-ent-free">lu_ent_free</a> (lu_ent_t *ent);
void <a class="link" href="libuser-entity.html#lu-ent-copy">lu_ent_copy</a> (lu_ent_t *source,
lu_ent_t *dest);
void <a class="link" href="libuser-entity.html#lu-ent-commit">lu_ent_commit</a> (lu_ent_t *ent);
void <a class="link" href="libuser-entity.html#lu-ent-revert">lu_ent_revert</a> (lu_ent_t *ent);
void <a class="link" href="libuser-entity.html#lu-ent-add">lu_ent_add</a> (lu_ent_t *ent,
const char *attr,
const <a
href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"
>GValue</a> *value);
void <a class="link" href="libuser-entity.html#lu-ent-add-current">lu_ent_add_current</a> (lu_ent_t *ent,
const char *attr,
const <a
href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"
>GValue</a> *value);
void <a class="link" href="libuser-entity.html#lu-ent-clear">lu_ent_clear</a> (lu_ent_t *ent,
const char *attr);
void <a class="link" href="libuser-entity.html#lu-ent-clear-all">lu_ent_clear_all</a> (lu_ent_t *ent);
void <a class="link" href="libuser-entity.html#lu-ent-clear-all-current">lu_ent_clear_all_current</a> (lu_ent_t *ent);
void <a class="link" href="libuser-entity.html#lu-ent-clear-current">lu_ent_clear_current</a> (lu_ent_t *ent,
const char *attr);
void <a class="link" href="libuser-entity.html#lu-ent-del">lu_ent_del</a> (lu_ent_t *ent,
const char *attr,
const <a
href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"
>GValue</a> *value);
void <a class="link" href="libuser-entity.html#lu-ent-del-current">lu_ent_del_current</a> (lu_ent_t *ent,
const char *attr,
const <a
href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"
>GValue</a> *value);
void <a class="link" href="libuser-entity.html#lu-ent-dump">lu_ent_dump</a> (lu_ent_t *ent,
FILE *fp);
<a
href="/usr/share/gtk-doc/html/gobject/gobject-Value-arrays.html#GValueArray"
>GValueArray</a>* <a class="link" href="libuser-entity.html#lu-ent-get">lu_ent_get</a> (lu_ent_t *ent,
const char *attribute);
<a
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>* <a class="link" href="libuser-entity.html#lu-ent-get-attributes">lu_ent_get_attributes</a> (lu_ent_t *ent);
<a
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>* <a class="link" href="libuser-entity.html#lu-ent-get-attributes-current">lu_ent_get_attributes_current</a> (lu_ent_t *ent);
<a
href="/usr/share/gtk-doc/html/gobject/gobject-Value-arrays.html#GValueArray"
>GValueArray</a>* <a class="link" href="libuser-entity.html#lu-ent-get-current">lu_ent_get_current</a> (lu_ent_t *ent,
const char *attribute);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libuser-entity.html#lu-ent-has">lu_ent_has</a> (lu_ent_t *ent,
const char *attribute);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libuser-entity.html#lu-ent-has-current">lu_ent_has_current</a> (lu_ent_t *ent,
const char *attribute);
void <a class="link" href="libuser-entity.html#lu-ent-set">lu_ent_set</a> (lu_ent_t *ent,
const char *attr,
const <a
href="/usr/share/gtk-doc/html/gobject/gobject-Value-arrays.html#GValueArray"
>GValueArray</a> *values);
void <a class="link" href="libuser-entity.html#lu-ent-set-current">lu_ent_set_current</a> (lu_ent_t *ent,
const char *attr,
const <a
href="/usr/share/gtk-doc/html/gobject/gobject-Value-arrays.html#GValueArray"
>GValueArray</a> *values);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3080015"></a><h2>Description</h2>
<p>
entity.h declares functions for manipulating lu_ent structures, which are used
by libuser, its modules, and applications to hold data about a particular
user or group account.
</p>
<p>
Each struct lu_ent contains two sets of attributes: pending and current.
The pending attributes are modified by default, the current attributes
are modified by functions ending with _current.
</p>
<p>
Each attribute contains a list of values. The list is never empty; removing
the last entry from the list removes the list completely.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id3080044"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id3080053"></a><h3>
<a name="LU-USERNAME:CAPS"></a>LU_USERNAME</h3>
<a class="indexterm" name="id3080064"></a><pre class="programlisting">#define LU_USERNAME "pw_name"
</pre>
<p>
User name, a <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS"
><code class="literal">G_TYPE_STRING</code></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080086"></a><h3>
<a name="LU-USERPASSWORD:CAPS"></a>LU_USERPASSWORD</h3>
<a class="indexterm" name="id3080097"></a><pre class="programlisting">#define LU_USERPASSWORD "pw_passwd"
</pre>
<p>
User password, a <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS"
><code class="literal">G_TYPE_STRING</code></a>. If shadow passwords are used, this is the
placeholder password.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080120"></a><h3>
<a name="LU-UIDNUMBER:CAPS"></a>LU_UIDNUMBER</h3>
<a class="indexterm" name="id3080131"></a><pre class="programlisting">#define LU_UIDNUMBER "pw_uid"
</pre>
<p>
User ID, an <span class="type">id_t</span>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080151"></a><h3>
<a name="LU-GIDNUMBER:CAPS"></a>LU_GIDNUMBER</h3>
<a class="indexterm" name="id3080162"></a><pre class="programlisting">#define LU_GIDNUMBER "pw_gid"
</pre>
<p>
Group ID, an <span class="type">id_t</span>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080182"></a><h3>
<a name="LU-GECOS:CAPS"></a>LU_GECOS</h3>
<a class="indexterm" name="id3080193"></a><pre class="programlisting">#define LU_GECOS "pw_gecos"
</pre>
<p>
Usually user's real name, a <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS"
><code class="literal">G_TYPE_STRING</code></a>. Often contains user's real name,
office name, office phone, home phone, separated by commas.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080218"></a><h3>
<a name="LU-HOMEDIRECTORY:CAPS"></a>LU_HOMEDIRECTORY</h3>
<a class="indexterm" name="id3080228"></a><pre class="programlisting">#define LU_HOMEDIRECTORY "pw_dir"
</pre>
<p>
User's home directory, a <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS"
><code class="literal">G_TYPE_STRING</code></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080251"></a><h3>
<a name="LU-LOGINSHELL:CAPS"></a>LU_LOGINSHELL</h3>
<a class="indexterm" name="id3080261"></a><pre class="programlisting">#define LU_LOGINSHELL "pw_shell"
</pre>
<p>
User's login shell, a <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS"
><code class="literal">G_TYPE_STRING</code></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080284"></a><h3>
<a name="LU-GROUPNAME:CAPS"></a>LU_GROUPNAME</h3>
<a class="indexterm" name="id3080294"></a><pre class="programlisting">#define LU_GROUPNAME "gr_name"
</pre>
<p>
Group name, a <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS"
><code class="literal">G_TYPE_STRING</code></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080316"></a><h3>
<a name="LU-GROUPPASSWORD:CAPS"></a>LU_GROUPPASSWORD</h3>
<a class="indexterm" name="id3080327"></a><pre class="programlisting">#define LU_GROUPPASSWORD "gr_passwd"
</pre>
<p>
Group password, a <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS"
><code class="literal">G_TYPE_STRING</code></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080350"></a><h3>
<a name="LU-MEMBERNAME:CAPS"></a>LU_MEMBERNAME</h3>
<a class="indexterm" name="id3080360"></a><pre class="programlisting">#define LU_MEMBERNAME "gr_mem"
</pre>
<p>
Group member names; each member is represented by a separate <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS"
><code class="literal">G_TYPE_STRING</code></a>
value.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080384"></a><h3>
<a name="LU-ADMINISTRATORNAME:CAPS"></a>LU_ADMINISTRATORNAME</h3>
<a class="indexterm" name="id3080394"></a><pre class="programlisting">#define LU_ADMINISTRATORNAME "gr_adm"
</pre>
<p>
Group administrator names; each administrator is represented by a separate
<a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS"
><code class="literal">G_TYPE_STRING</code></a> value.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080418"></a><h3>
<a name="LU-SHADOWNAME:CAPS"></a>LU_SHADOWNAME</h3>
<a class="indexterm" name="id3080429"></a><pre class="programlisting">#define LU_SHADOWNAME LU_USERNAME
</pre>
<p>
User name, a <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS"
><code class="literal">G_TYPE_STRING</code></a>. Note that <a class="link" href="libuser-entity.html#LU-SHADOWNAME:CAPS"><code class="literal">LU_SHADOWNAME</code></a> is not distinct from
<a class="link" href="libuser-entity.html#LU-USERNAME:CAPS"><code class="literal">LU_USERNAME</code></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080468"></a><h3>
<a name="LU-SHADOWPASSWORD:CAPS"></a>LU_SHADOWPASSWORD</h3>
<a class="indexterm" name="id3080478"></a><pre class="programlisting">#define LU_SHADOWPASSWORD "sp_pwdp"
</pre>
<p>
User password in the shadow file, a <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS"
><code class="literal">G_TYPE_STRING</code></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080502"></a><h3>
<a name="LU-SHADOWLASTCHANGE:CAPS"></a>LU_SHADOWLASTCHANGE</h3>
<a class="indexterm" name="id3080512"></a><pre class="programlisting">#define LU_SHADOWLASTCHANGE "sp_lstchg"
</pre>
<p>
The number of days since the epoch to the day when the password was last
changed, a <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-LONG:CAPS"
><code class="literal">G_TYPE_LONG</code></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080536"></a><h3>
<a name="LU-SHADOWMIN:CAPS"></a>LU_SHADOWMIN</h3>
<a class="indexterm" name="id3080547"></a><pre class="programlisting">#define LU_SHADOWMIN "sp_min"
</pre>
<p>
Minimum password lifetime in days before it can be changed, a <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-LONG:CAPS"
><code class="literal">G_TYPE_LONG</code></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080570"></a><h3>
<a name="LU-SHADOWMAX:CAPS"></a>LU_SHADOWMAX</h3>
<a class="indexterm" name="id3080581"></a><pre class="programlisting">#define LU_SHADOWMAX "sp_max"
</pre>
<p>
Maximum password lifetime in days before it must be changed, a <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-LONG:CAPS"
><code class="literal">G_TYPE_LONG</code></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080604"></a><h3>
<a name="LU-SHADOWWARNING:CAPS"></a>LU_SHADOWWARNING</h3>
<a class="indexterm" name="id3080615"></a><pre class="programlisting">#define LU_SHADOWWARNING "sp_warn"
</pre>
<p>
Days before the password lifetime expires when the user should start to be
warned, a <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-LONG:CAPS"
><code class="literal">G_TYPE_LONG</code></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080639"></a><h3>
<a name="LU-SHADOWINACTIVE:CAPS"></a>LU_SHADOWINACTIVE</h3>
<a class="indexterm" name="id3080649"></a><pre class="programlisting">#define LU_SHADOWINACTIVE "sp_inact"
</pre>
<p>
Days after the password lifetime expires when the user account is disabled
(because it is considered inactive), a <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-LONG:CAPS"
><code class="literal">G_TYPE_LONG</code></a>. -1 to disable inactive
account disabling.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080675"></a><h3>
<a name="LU-SHADOWEXPIRE:CAPS"></a>LU_SHADOWEXPIRE</h3>
<a class="indexterm" name="id3080685"></a><pre class="programlisting">#define LU_SHADOWEXPIRE "sp_expire"
</pre>
<p>
The number of days since the epoch to the day when the account expires and
is disabled, a <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-LONG:CAPS"
><code class="literal">G_TYPE_LONG</code></a>. -1 to disable account expiration.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080710"></a><h3>
<a name="LU-SHADOWFLAG:CAPS"></a>LU_SHADOWFLAG</h3>
<a class="indexterm" name="id3080721"></a><pre class="programlisting">#define LU_SHADOWFLAG "sp_flag"
</pre>
<p>
A reserved value "for future use", a <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-LONG:CAPS"
><code class="literal">G_TYPE_LONG</code></a>. In most cases the value is
-1.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080745"></a><h3>
<a name="LU-COMMONNAME:CAPS"></a>LU_COMMONNAME</h3>
<a class="indexterm" name="id3080755"></a><pre class="programlisting">#define LU_COMMONNAME "cn"
</pre>
<p>
User's real name, a <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS"
><code class="literal">G_TYPE_STRING</code></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080778"></a><h3>
<a name="LU-GIVENNAME:CAPS"></a>LU_GIVENNAME</h3>
<a class="indexterm" name="id3080788"></a><pre class="programlisting">#define LU_GIVENNAME "givenName"
</pre>
<p>
User's given name, a <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS"
><code class="literal">G_TYPE_STRING</code></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080811"></a><h3>
<a name="LU-SN:CAPS"></a>LU_SN</h3>
<a class="indexterm" name="id3080821"></a><pre class="programlisting">#define LU_SN "sn"
</pre>
<p>
User's surname, a <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS"
><code class="literal">G_TYPE_STRING</code></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080843"></a><h3>
<a name="LU-ROOMNUMBER:CAPS"></a>LU_ROOMNUMBER</h3>
<a class="indexterm" name="id3080853"></a><pre class="programlisting">#define LU_ROOMNUMBER "roomNumber"
</pre>
<p>
User's room number, a <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS"
><code class="literal">G_TYPE_STRING</code></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080876"></a><h3>
<a name="LU-TELEPHONENUMBER:CAPS"></a>LU_TELEPHONENUMBER</h3>
<a class="indexterm" name="id3080886"></a><pre class="programlisting">#define LU_TELEPHONENUMBER "telephoneNumber"
</pre>
<p>
User's telephone number, a <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS"
><code class="literal">G_TYPE_STRING</code></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080910"></a><h3>
<a name="LU-HOMEPHONE:CAPS"></a>LU_HOMEPHONE</h3>
<a class="indexterm" name="id3080920"></a><pre class="programlisting">#define LU_HOMEPHONE "homePhone"
</pre>
<p>
User's home telephone number, a <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS"
><code class="literal">G_TYPE_STRING</code></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080944"></a><h3>
<a name="LU-EMAIL:CAPS"></a>LU_EMAIL</h3>
<a class="indexterm" name="id3080954"></a><pre class="programlisting">#define LU_EMAIL "mail"
</pre>
<p>
User's email address, a <a
href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS"
><code class="literal">G_TYPE_STRING</code></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3080976"></a><h3>
<a name="lu-ent-new"></a>lu_ent_new ()</h3>
<a class="indexterm" name="id3080986"></a><pre class="programlisting">lu_ent_t* lu_ent_new (void);</pre>
<p>
Creates a new, empty struct <span class="type">lu_ent</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the created entity, which should be deallocated by <a class="link" href="libuser-entity.html#lu-ent-free"><code class="function">lu_ent_free()</code></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3081035"></a><h3>
<a name="lu-ent-free"></a>lu_ent_free ()</h3>
<a class="indexterm" name="id3081045"></a><pre class="programlisting">void lu_ent_free (lu_ent_t *ent);</pre>
<p>
Frees an struct <span class="type">lu_ent</span>, including all strings it owns.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>ent</code></em> :</span></p></td>
<td>the entity to free
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3081093"></a><h3>
<a name="lu-ent-copy"></a>lu_ent_copy ()</h3>
<a class="indexterm" name="id3081103"></a><pre class="programlisting">void lu_ent_copy (lu_ent_t *source,
lu_ent_t *dest);</pre>
<p>
Copies one struct <span class="type">lu_ent</span> over another.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>source</code></em> :</span></p></td>
<td>the entity to copy
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>dest</code></em> :</span></p></td>
<td>the destination space, must be already allocated by <a class="link" href="libuser-entity.html#lu-ent-new"><code class="function">lu_ent_new()</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3081179"></a><h3>
<a name="lu-ent-commit"></a>lu_ent_commit ()</h3>
<a class="indexterm" name="id3081189"></a><pre class="programlisting">void lu_ent_commit (lu_ent_t *ent);</pre>
<p>
Sets pending attribute changes as current values of the entity.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>ent</code></em> :</span></p></td>
<td>an entity
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3081231"></a><h3>
<a name="lu-ent-revert"></a>lu_ent_revert ()</h3>
<a class="indexterm" name="id3081242"></a><pre class="programlisting">void lu_ent_revert (lu_ent_t *ent);</pre>
<p>
Replaces all attributes with changes pending by their current values,
forgetting the pending changes.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>ent</code></em> :</span></p></td>
<td>an entity
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3081284"></a><h3>
<a name="lu-ent-add"></a>lu_ent_add ()</h3>
<a class="indexterm" name="id3081295"></a><pre class="programlisting">void lu_ent_add (lu_ent_t *ent,
const char *attr,
const <a
href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"
>GValue</a> *value);</pre>
<p>
Appends <em class="parameter"><code>value</code></em> to pending attribute <em class="parameter"><code>attr</code></em> in a struct <span class="type">lu_ent</span> if <em class="parameter"><code>value</code></em>
is not yet in the list of <em class="parameter"><code>attr</code></em> values.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>ent</code></em> :</span></p></td>
<td>an entity
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>attribute name
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>new attribute value
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3081401"></a><h3>
<a name="lu-ent-add-current"></a>lu_ent_add_current ()</h3>
<a class="indexterm" name="id3081411"></a><pre class="programlisting">void lu_ent_add_current (lu_ent_t *ent,
const char *attr,
const <a
href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"
>GValue</a> *value);</pre>
<p>
Appends <em class="parameter"><code>value</code></em> to current attribute <em class="parameter"><code>attr</code></em> in a struct <span class="type">lu_ent</span> if <em class="parameter"><code>value</code></em>
is not yet in the list of <em class="parameter"><code>attr</code></em> values.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>ent</code></em> :</span></p></td>
<td>an entity
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>attribute name
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>new attribute value
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3081518"></a><h3>
<a name="lu-ent-clear"></a>lu_ent_clear ()</h3>
<a class="indexterm" name="id3081528"></a><pre class="programlisting">void lu_ent_clear (lu_ent_t *ent,
const char *attr);</pre>
<p>
Removes all values of pending attribute <em class="parameter"><code>attribute</code></em> from a struct <span class="type">lu_ent</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>ent</code></em> :</span></p></td>
<td>an entity
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>attribute name
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3081600"></a><h3>
<a name="lu-ent-clear-all"></a>lu_ent_clear_all ()</h3>
<a class="indexterm" name="id3081611"></a><pre class="programlisting">void lu_ent_clear_all (lu_ent_t *ent);</pre>
<p>
Removes all pending attributes from a struct <span class="type">lu_ent</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>ent</code></em> :</span></p></td>
<td>an entity
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3081659"></a><h3>
<a name="lu-ent-clear-all-current"></a>lu_ent_clear_all_current ()</h3>
<a class="indexterm" name="id3081669"></a><pre class="programlisting">void lu_ent_clear_all_current (lu_ent_t *ent);</pre>
<p>
Removes all current attributes from a struct <span class="type">lu_ent</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>ent</code></em> :</span></p></td>
<td>an entity
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3081717"></a><h3>
<a name="lu-ent-clear-current"></a>lu_ent_clear_current ()</h3>
<a class="indexterm" name="id3081728"></a><pre class="programlisting">void lu_ent_clear_current (lu_ent_t *ent,
const char *attr);</pre>
<p>
Removes all values of current attribute <em class="parameter"><code>attribute</code></em> from a struct <span class="type">lu_ent</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>ent</code></em> :</span></p></td>
<td>an entity
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>attribute name
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3081800"></a><h3>
<a name="lu-ent-del"></a>lu_ent_del ()</h3>
<a class="indexterm" name="id3081810"></a><pre class="programlisting">void lu_ent_del (lu_ent_t *ent,
const char *attr,
const <a
href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"
>GValue</a> *value);</pre>
<p>
Removes a pending attribute <em class="parameter"><code>attr</code></em> value <em class="parameter"><code>value</code></em> from a struct <span class="type">lu_ent</span>, if
present.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>ent</code></em> :</span></p></td>
<td>an entity
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>attribute name
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>attribute value
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3081907"></a><h3>
<a name="lu-ent-del-current"></a>lu_ent_del_current ()</h3>
<a class="indexterm" name="id3081917"></a><pre class="programlisting">void lu_ent_del_current (lu_ent_t *ent,
const char *attr,
const <a
href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"
>GValue</a> *value);</pre>
<p>
Removes a current attribute <em class="parameter"><code>attr</code></em> value <em class="parameter"><code>value</code></em> from a struct <span class="type">lu_ent</span>, if
present.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>ent</code></em> :</span></p></td>
<td>an entity
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>attribute name
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>attribute value
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3082014"></a><h3>
<a name="lu-ent-dump"></a>lu_ent_dump ()</h3>
<a class="indexterm" name="id3082024"></a><pre class="programlisting">void lu_ent_dump (lu_ent_t *ent,
FILE *fp);</pre>
<p>
Dumps an struct <span class="type">lu_ent</span> to a file in text form, for debugging.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>ent</code></em> :</span></p></td>
<td>the entity to dump
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>fp</code></em> :</span></p></td>
<td>destination file
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3082091"></a><h3>
<a name="lu-ent-get"></a>lu_ent_get ()</h3>
<a class="indexterm" name="id3082101"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/gobject/gobject-Value-arrays.html#GValueArray"
>GValueArray</a>* lu_ent_get (lu_ent_t *ent,
const char *attribute);</pre>
<p>
Returns values associated with a pending attribute in a struct <span class="type">lu_ent</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>ent</code></em> :</span></p></td>
<td>an entity
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>attribute</code></em> :</span></p></td>
<td>attribute name
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an array of values, valid at least until they are modified or
deleted. The array is never empty and it should not be freed by the caller.
Returns <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if the attribute is not present at all or on error.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3082190"></a><h3>
<a name="lu-ent-get-attributes"></a>lu_ent_get_attributes ()</h3>
<a class="indexterm" name="id3082201"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>* lu_ent_get_attributes (lu_ent_t *ent);</pre>
<p>
Returns a list of all pending attributes in a struct <span class="type">lu_ent</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>ent</code></em> :</span></p></td>
<td>an entity
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
><span class="type">GList</span></a> of attribute names. The list (but not the strings
in the list) should be freed by the caller.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3082266"></a><h3>
<a name="lu-ent-get-attributes-current"></a>lu_ent_get_attributes_current ()</h3>
<a class="indexterm" name="id3082279"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>* lu_ent_get_attributes_current (lu_ent_t *ent);</pre>
<p>
Returns a list of all current attributes in a struct <span class="type">lu_ent</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>ent</code></em> :</span></p></td>
<td>an entity
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
><span class="type">GList</span></a> of attribute names. The list (but not the strings
in the list) should be freed by the caller.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3082345"></a><h3>
<a name="lu-ent-get-current"></a>lu_ent_get_current ()</h3>
<a class="indexterm" name="id3082359"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/gobject/gobject-Value-arrays.html#GValueArray"
>GValueArray</a>* lu_ent_get_current (lu_ent_t *ent,
const char *attribute);</pre>
<p>
Returns values associated with a current attribute in a struct <span class="type">lu_ent</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>ent</code></em> :</span></p></td>
<td>an entity
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>attribute</code></em> :</span></p></td>
<td>attribute name
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a list of values, valid at least until they are modified or deleted.
The list should not be freed by the caller. Returns <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if the attribute is
not present at all or on error.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3082459"></a><h3>
<a name="lu-ent-has"></a>lu_ent_has ()</h3>
<a class="indexterm" name="id3082471"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> lu_ent_has (lu_ent_t *ent,
const char *attribute);</pre>
<p>
Checks if a struct <span class="type">lu_ent</span> has at least one pending attribute <em class="parameter"><code>attribute</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>ent</code></em> :</span></p></td>
<td>an entity
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>attribute</code></em> :</span></p></td>
<td>attribute name
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>attribute</code></em> has a value in <em class="parameter"><code>ent</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3082585"></a><h3>
<a name="lu-ent-has-current"></a>lu_ent_has_current ()</h3>
<a class="indexterm" name="id3082598"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> lu_ent_has_current (lu_ent_t *ent,
const char *attribute);</pre>
<p>
Checks if a struct <span class="type">lu_ent</span> has at least one current attribute <em class="parameter"><code>attribute</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>ent</code></em> :</span></p></td>
<td>an entity
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>attribute</code></em> :</span></p></td>
<td>attribute name
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>attribute</code></em> has a value in <em class="parameter"><code>ent</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3082711"></a><h3>
<a name="lu-ent-set"></a>lu_ent_set ()</h3>
<a class="indexterm" name="id3082724"></a><pre class="programlisting">void lu_ent_set (lu_ent_t *ent,
const char *attr,
const <a
href="/usr/share/gtk-doc/html/gobject/gobject-Value-arrays.html#GValueArray"
>GValueArray</a> *values);</pre>
<p>
Replaces all pending attributes <em class="parameter"><code>attr</code></em> in a struct <span class="type">lu_ent</span> by a copy of
<em class="parameter"><code>values</code></em>. If <em class="parameter"><code>values</code></em> is empty, it removes the pending attribute completely.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>ent</code></em> :</span></p></td>
<td>an entity
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>attribute name
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>values</code></em> :</span></p></td>
<td>an array of values
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3082842"></a><h3>
<a name="lu-ent-set-current"></a>lu_ent_set_current ()</h3>
<a class="indexterm" name="id3082854"></a><pre class="programlisting">void lu_ent_set_current (lu_ent_t *ent,
const char *attr,
const <a
href="/usr/share/gtk-doc/html/gobject/gobject-Value-arrays.html#GValueArray"
>GValueArray</a> *values);</pre>
<p>
Replaces all current attributes <em class="parameter"><code>attr</code></em> in a struct <span class="type">lu_ent</span> by a copy of
<em class="parameter"><code>values</code></em>. If <em class="parameter"><code>values</code></em> is empty, it removes the current attribute completely.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>ent</code></em> :</span></p></td>
<td>an entity
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>attr</code></em> :</span></p></td>
<td>attribute name
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>values</code></em> :</span></p></td>
<td>an array of values
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3082973"></a><div class="refsect2" lang="en"><a name="id3082974"></a></div>
<hr>
<div class="refsect2" lang="en"><a name="id3082975"></a></div>
</div>
</div>
</body>
</html>
|