libgeda

s_slot.c File Reference

utility functions for slotted components More...

#include <config.h>
#include <stdio.h>
#include <math.h>
#include "libgeda_priv.h"
Include dependency graph for s_slot.c:

Go to the source code of this file.

Defines

#define DELIMITERS   ",; "

Functions

char * s_slot_search_slot (OBJECT *object, OBJECT **return_found)
 Search for slot attribute.
static char * s_slot_search_slotdef (OBJECT *object, int slotnumber)
 Search for slotdef attribute.
void s_slot_update_object (TOPLEVEL *toplevel, OBJECT *object)
 Update all slot attributes in an object.

Detailed Description

Definition in file s_slot.c.


Define Documentation

#define DELIMITERS   ",; "

Basic string splitting delimiters

Definition at line 40 of file s_slot.c.


Function Documentation

char* s_slot_search_slot ( OBJECT object,
OBJECT **  return_found 
)
Function Description
Search for slot attribute.

The returned value will only come from an attached attribute.

Parameters:
[in]objectOBJECT list to search.
[in]return_foundattached slot attribute if found, NULL otherwise.
Returns:
Character string with attribute value, NULL otherwise.
Warning:
Caller must g_free returned character string

Definition at line 56 of file s_slot.c.

Here is the call graph for this function:

static char* s_slot_search_slotdef ( OBJECT object,
int  slotnumber 
) [static]
Function Description
Search for slotdef attribute.
Parameters:
[in]objectThe OBJECT list to search.
[in]slotnumberThe slot number to search for.
Returns:
Character string with attribute value, NULL otherwise.
Warning:
Caller must g_free returned character string.

Definition at line 87 of file s_slot.c.

Here is the call graph for this function:

void s_slot_update_object ( TOPLEVEL toplevel,
OBJECT object 
)
Function Description
Update pinnumber attributes in a graphic object. The interesting case is where the object is an instantiation of a slotted part. This means that s_slot_update_object iterates through all pins found on object and sets the pinnumber= attrib on each. This doesn't matter for non-slotted parts, but on slotted parts, this is what sets the pinnumber= attribute on slots 2, 3, 4....
Parameters:
[in]toplevelThe TOPLEVEL object.
[in,out]objectThe OBJECT to update.

Definition at line 124 of file s_slot.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines