2 Copyright © 2002, The AROS Development Team.
11 #include <libraries/iffparse.h>
13 #include <proto/exec.h>
14 #include <proto/iffparse.h>
18 /****************************************************************
20 *****************************************************************/
21 STRPTR
ReadStringChunkPooled( APTR pool
, struct StoredProperty
*sp
)
26 if (sp
->sp_Size
==0) return NULL
;
28 if ((buf
= (STRPTR
)AllocVec(sp
->sp_Size
+1,0)))
30 strncpy(buf
, (STRPTR
)sp
->sp_Data
,sp
->sp_Size
);
36 /****************************************************************
38 *****************************************************************/
39 BOOL
PushStringChunk( struct IFFHandle
*iff
, LONG id
, STRPTR txt
)
43 if(!PushChunk(iff
,0,id
,IFFSIZE_UNKNOWN
))
45 WriteChunkBytes(iff
,txt
,strlen(txt
));
52 /****************************************************************
54 *****************************************************************/
55 void zune_prefs_save_as_iff(char *filename
, struct ZunePrefs
*prefs
)
60 /****************************************************************
61 Load zune prefs from given filename
62 *****************************************************************/
63 struct ZunePrefs
*zune_prefs_load(char *filename
)
68 /****************************************************************
69 Free prefs allocated by zune_prefs_load
70 *****************************************************************/
71 void zune_prefs_free(struct ZunePrefs
*prefs
)