[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Data type 9 for builddate
- From: Jeff Johnson <jbj JBJ ORG>
- To: rpm-list redhat com
- Subject: Re: Data type 9 for builddate
- Date: Tue, 13 Mar 2001 09:23:06 -0500
On Mon, Mar 12, 2001 at 05:18:43AM +0000, Sveinbjorn Thordarson wrote:
> Hi there,
>
> I'm working on a non-UNIX RPM package info program using Maximum RPM as
> my bible. However, I need to be able to read the build date tag, which
> is of data type 9, which is inconveniently enough not documented in Max
> RPM. Anyone know how to read it?
>
Um, RPMTAG_BULDTIME has RPM_INT32_TYPE, not RPM_I18NSTRING_TYPE, value.
> the first nine types:
>
> #define NIL 0
This is never used.
> #define CHAR 1
> #define INT8 2
> #define INT16 3
> #define INT32 4
> #define INT64 5
> #define STRING 6
> #define BIN 7
> #define STRING_ARRAY 8
#define I18N_STRING 9
Why not just #include <header.h> from rpm sources to get these values?
RPM_I18NSTRING_TYPE is an associative array. The locale is used to determine
the index from matching entries in the HEADER_I18NTABLE (tag value 100), then
the string with the same index is returned as value from a string array.
73 de Jeff
--
Jeff Johnson ARS N3NPQ
jbj@jbj.org (jbj@redhat.com)
Chapel Hill, NC
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]