CSA_ADD_CALENDAR(3)

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

πŸ’– csa_add_calendar πŸ’–

okay bestie, welcome to the csa_add_calendar(library call) page β€” manual name folded in right here instead of copied as a header line, because we're cute like that πŸŽ€. This one is about adding a calendar to the calendar service, and it's giving β€œsmall function, big authority energy” πŸ’….


✨ NAME ✨

csa_add_calendar β€” add a calendar to the calendar service. periodt. πŸ’–


πŸ’… SYNOPSIS πŸ’…

This is the exact signature, bestie β€” yes, the ampersand in the include line is exactly what the original says, I'm not fixing it, I'm copying it character for character πŸ™ˆ:

       #include &<xcsa.h>
       CSA_return_code csa_add_calendar(
       CSA_session_handle session,
       CSA_calendar_user *user,
       CSA_uint32 number_attributes,
       CSA_attribute *calendar_attributes,
       CSA_extension *add_calendar_extensions);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so csa_add_calendar creates a calendar on the calendar service. no cap, that's the whole assignment. πŸ”₯

If the user does not have sufficient authority to add a calendar to the service, the error CSA_E_NO_AUTHORITY is returned. If the calendar already exists, the error CSA_E_CALENDAR_EXISTS is returned. those are the receipts. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

Session (Session Handle)

Opaque session handle that represents a session with the calendaring service. it's opaque, bestie β€” don't peek. πŸ‘€

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. The session handle may be NULL if the calendar service does not require a session to be established in order to add a calendar. lowkey flexible. πŸ¦‹

User (Calendar User)

A pointer to a calendar user structure. This specifies the user and name of the calendar to be added to the calendar service. it's giving β€œwho + what” main character energy πŸ‘‘.

Number Attributes (Uint32)

The number of elements in calendar_attributes argument. yes, the argument name stays exactly like that. πŸ’…

Calendar Attributes (Attributes)

A pointer to an array of attribute structures that specify the calendar attributes for the new calendar. basically the new calendar's vibe sheet ✨.

Add CalendarExtensions (Extension)

A pointer to an array of CSA_extension structures for this function. The 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. no guessing, that's literally what it says. 🫢


πŸ“ RETURN VALUE πŸ“

Add Calendar 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. so: check your extensions, check your return code, be an icon. πŸ’…


πŸ’€ ERRORS πŸ’€

The csa_add_calendar function returns the following error values:

  • CSA_E_CALENDAR_EXISTS β€” The specified calendar already exists.
  • 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.
  • 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_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_INAVLID_SESSION_HANDLE β€” this is exactly the spelling in the original, and no description was given, bestie πŸ™ˆ
  • CSA_E_INVALID_USER β€” The specified calendar user is invalid.
  • CSA_E_NO_AUTHORITY β€” The user has insufficient authority for this function.
  • CSA_E_NOT_SUPPORTED β€” The operation requested is not supported by this implementation.
  • CSA_E_READONLY β€” no description in the original.
  • 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_CHARACTER_SET β€” The character set requested is not supported.
  • CSA_E_UNSUPPORTED_DATA_EXT β€” The data extension requested is not supported.
  • CSA_E_UNSUPPORTED_ENUM β€” The specified enumerated value is not valid.
  • 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 🌈


and that's the whole csa_add_calendar(library call) manual page, bestie β€” footer/source-version is csa_add_calendar(library call), and this copy doesn't show a date, so I'm not making one up πŸ™ˆπŸ’–. slay responsibly, and may your calendars always be yours. periodt. πŸŽ€

πŸ“¦ where this page comes from