Menu

#40 Add missing functions in c_wrapper.cpp

open
None
5
2003-12-21
2003-05-01
Dan Wilks
No

I was playing around with a c# wrapper for the
c_wrapper and noticed that the ID3_FrameInfo wrappers
were missing. Here's what I added. (Let me know if
you'd like this submitted in some other way.)

cheers

Added near bottom of c_wrapper.cpp

ID3_FrameInfo helper;

ID3_C_EXPORT char* CCONV
ID3FrameInfo_ShortName (ID3_FrameID frameid)
{
return helper.ShortName (frameid);
}

ID3_C_EXPORT char* CCONV
ID3FrameInfo_LongName (ID3_FrameID frameid)
{
return helper.LongName (frameid);
}

ID3_C_EXPORT const char* CCONV
ID3FrameInfo_Description (ID3_FrameID frameid)
{
return helper.Description (frameid);
}

ID3_C_EXPORT int CCONV
ID3FrameInfo_MaxFrameID (void)
{
return helper.MaxFrameID ();
}

ID3_C_EXPORT int CCONV
ID3FrameInfo_NumFields (ID3_FrameID frameid)
{
return helper.NumFields (frameid);
}

ID3_C_EXPORT ID3_FieldType CCONV
ID3FrameInfo_FieldType (ID3_FrameID frameid, int
fieldnum)
{
return helper.FieldType (frameid, fieldnum);
}

ID3_C_EXPORT size_t CCONV
ID3FrameInfo_FieldSize (ID3_FrameID frameid, int
fieldnum)
{
return helper.FieldSize (frameid, fieldnum);
}

ID3_C_EXPORT flags_t CCONV
ID3FrameInfo_FieldFlags (ID3_FrameID frameid, int
fieldnum)
{
return helper.FieldFlags (frameid, fieldnum);
}

Discussion

  • M. Hagoort

    M. Hagoort - 2003-10-04

    Logged In: YES
    user_id=327967

    I already wondered where they are, thnx

     
  • T.H.F. Klok

    T.H.F. Klok - 2003-12-21
    • assigned_to: nobody --> t1mpy
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.