CSA_UPDATE_CALENDAR_ATTRIBUTES(3)
π csa_update_calendar_attributes(3) β the library call that updates your calendar's attribute values β¨
okay so bestie, this is a library call from csa/csa.h, and it's literally the glow-up function for calendar attributes. Let's get into it π«Ά
πΈ NAME πΈ
csa_update_calendar_attributes β update the calendar attributes values for a calendar π
β¨ SYNOPSIS β¨
#include <xcsa.h>
CSA_return_code csa_update_calendar_attributes(
CSA_session_handle session,
CSA_uint32 number_attributes,
CSA_attribute *calendar_attributes,
CSA_extension *update_calendar_attributes_extensions);
π¦ DESCRIPTION π¦
so csa_update_calendar_attributes updates the values of the calendar attributes of the calendar you point it at. Every attribute you specify gets its existing value replaced by the new value you put in calendar_attributes β no cap, that's the whole vibe.
You can also add brand new attributes with this function (yes, it does both π
), and you can effectively delete existing attributes by setting the value part of the CSA_attributes structure to NULL. Gone. Deleted. Iconic.
If you specify a read-only attribute, the function returns the error CSA_E_READ_ONLY β she said no edits, periodt. π
And here's the important part: if the function returns an error, none of the specified attributes will be updated. All-or-nothing energy, we love a clean transaction.
Only these people can update calendar attributes:
- the owner of the calendar π
- users with
CSA_OWNER_RIGHTS - users with
CSA_INSERT_CALENDAR_ATTRIBUTESaccess rights - users with
CSA_UPDATE_CALENDAR_ATTRIBUTES
π ARGUMENTS π
Session (Session Handle) π«Ά
An opaque session handle that represents a session with the calendaring service.
Session handles are created by a logon function call and invalidated with a logoff function call. If the session handle is invalid, then the error CSA_E_INVALID_SESSION_HANDLE is returned. so likeβ¦ keep track of your session, bestie π
Number Attributes (Uint32) π’
The number of calendar attributes in calendar_attributes.
Calendar Attributes (Attribute) πΈ
A pointer to an array of attribute structures containing the new values for the calendar attributes.
Update Calendar Attributes Extensions (Extension) π§
A pointer to an array of CSA_extension structures for this function. This array may contain both input extensions (for providing additional information to the function) and output extensions (for receiving information from the function). A value of NULL indicates that the caller is not using any extensions. See the extensions structure for more information.
β RETURN VALUE β
Update Calendar Attributes Extensions (Extension) π
If output extensions were passed to the function in the extensions list, the results from the service will be available in the extension. See the extensions structure for more information.
Whether the function succeeded or not, and, if not, why. It may be success or one of the values listed under ERRORS below.
π ERRORS π
The csa_update_calendar_attributes function returns the following error values:
CSA_E_DISK_FULLβ Insufficient disk space was available to complete the requested operation (this may refer to local or shared disk space). πCSA_E_FAILUREβ There was a general failure that does not fit the description of any other error code. the catch-all, the "idk what happened" of errors πCSA_E_INSUFFICIENT_MEMORYβ Insufficient memory was available to complete the requested operation.CSA_E_INVALID_ATTRIBUTEβ An attribute was specified that was not defined by this specification and the implementation does not support the attribute as an application specific attribute.CSA_E_INVALID_ATTRIBUTE_VALUEβ An invalid attribute value was specified for an attribute.CSA_E_INVALID_DATA_EXTβ The data extension requested is invalid.CSA_E_INVALID_FLAGβ A flag value in the flags argument was invalid.CSA_E_INVALID_FUNCTION_EXTβ The function extension requested is invalid.CSA_E_INVALID_PARAMETERβ A function parameter was invalid.CSA_E_INVALID_SESSION_HANDLEβ The specified Session Handle is invalid or no longer valid (e.g., after logging off).CSA_E_NO_AUTHORITYβ The user has insufficient authority for this function. no permission, no entry, sorry babe πCSA_E_NOT_SUPPORTEDβ The operation requested is not supported by this implementation.CSA_E_READ_ONLYβ An attempt was made to update a readonly attribute. not me trying to edit a read-only attribute πCSA_E_SERVICE_UNAVAILABLEβ The requested calendar service is unavailable.CSA_E_TEXT_TOO_LARGEβ The size of the text string passed to the implementation is too large.CSA_E_UNSUPPORTED_ATTRIBUTEβ An attribute was encountered that is unsupported by the calendar service.CSA_E_UNSUPPORTED_DATA_EXTβ The data extension requested is not supported.CSA_E_UNSUPPORTED_FLAGβ The flag requested is not supported.CSA_E_UNSUPPORTED_FUNCTION_EXTβ The specified function extension is not supported orCSA_EXT_REQUIREDis set.
π SEE ALSO π
csa/csa.h β csacsa(5), csa_add_calendar(3), csa_add_entry(3), csa_call_callbacks(3), csa_delete_calendar(3), csa_delete_entry(3), csa_free(3), csa_free_time_search(3), csa_list_calendar_attributes(3), csa_list_calendars(3), csa_list_entries(3), csa_list_entry_attributes(3), csa_list_entry_sequence(3), csa_logoff(3), csa_logon(3), csa_look_up(3), csa_query_configuration(3), csa_read_calendar_attributes(3), csa_read_entry_attributes(3), csa_read_next_reminder(3), csa_register_callback(3), csa_unregister_callback(3), csa_update_entry_attributes(3).
k that's the whole page bestie, hope it slayed π this one's from the csa_update_..._attributes(library call) manual, dated however old this doc is, and it's the version that lives in your csa/csa.h world β go update some attributes, you've got this πβ¨
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms