Loading...
Searching...
No Matches
su_tagarg.h File Reference
Tag Item Lists

\ Tagged argument lists More...

`#include <sofia-sip/su_tag.h>`
Include dependency graph for su_tagarg.h:

Go to the source code of this file.

## Data Structures

struct | ta_list
| Structure for accessing tagged argument lists. More...

## Macros

#define | SU_TAGARG_H
| Defined when <sofia-sip/su_tagarg.h> has been included.
#define | ta_start(ta, t, v)
| Macro initializing a ta_list object.
#define | ta_args(ta)
| Macro accessing tagged argument list.
#define | ta_tags(ta)
| Macro passing tagged argument list as an argument to another function.
#define | ta_end(ta)
| Handle return from function with tagged argument list.

## Detailed Description

\ Tagged argument lists

Author
  Pekka Pessi Pekka.nosp@m..Pes.nosp@m.si@no.nosp@m.kia..nosp@m.com

Date
  Created: Tue Feb 20 19:48:18 2001 ppessi

## Macro Definition Documentation

## ta_args

#define ta_args | ( |  | ta | ) |

Macro accessing tagged argument list.

The ta_args() returns a pointer to tag list containing the arguments.

## ta_end

#define ta_end | ( |  | ta | ) |

Handle return from function with tagged argument list.

The ta_end() macro handles return from function whose tagged argument list was initialized by ta_start().

The ta_end() macro returns no value.

## ta_start

#define ta_start | ( |  | ta,
|  |  | t,
|  |  | v )

Macro initializing a ta_list object.

The ta_start() macro initializes ta for subsequent use by ta_args(), ta_tags() and ta_end(), and must be called first.

The parameters t and v are the names of the `tag` and `value` in the first tag list item before the variable argument list (...).

The ta_start() macro returns no value.

## ta_tags

#define ta_tags | ( |  | ta | ) |

Macro passing tagged argument list as an argument to another function.

The ta_tags() macro expands to an tag list that can be given as arguments to a function taking an variable tag item list as an argument.

Sofia-SIP 1.12.11devel - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.