CSA_UPDATE_CALENDAR_ATTRIBUTES(3)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

πŸ’… 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_ATTRIBUTES access 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 or CSA_EXT_REQUIRED is 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