forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

What is the correct place for cdvd_rpc.h ?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
dlanor



Joined: 28 Oct 2004
Posts: 269
Location: Stockholm, Sweden

PostPosted: Tue Jun 07, 2005 3:34 am    Post subject: What is the correct place for cdvd_rpc.h ? Reply with quote

I have noticed that libcdvd.h is included like normal header files, in '$(PS2SDK)/ee/include'. But many projects I've worked with (currently LaunchELF) also require 'cdvd_rpc.h', which they expect to find in some separate project folder for libcdvd, which apparently no longer exists as such... And when I look inside the cdvd folder which is nowdays integrated with PS2SDK, then I find that no cdvd_rpc.h is to be found there anyway...

Searching the CVS repository I can only find this header file in a few project specific modules, such as 'libmp3' and 'neocdps2', etc. So I have to wonder: Is this header somehow no longer valid, or has it merely been neglected in the merging with ps2sdk ?

IMHO this header should be included together with the main cdvd header, and stored in the same folder. Thus using '$(PS2SDK)/ee/include' for the 'binary' distribution and 'ee/rpc/cdvd/include' in the ps2sdk module of the CVS. But 'older and wiser' heads than mine should decide this in any case, I just wanted to bring the problem to their attention.

Edit: Disregard the above. I now realize that the definitions in that header are obsolete, and that modern versions are available in '$(PS2SDK)/iop/include/cdvdman.h'. I also realize that the new prototypes are partly incompatible so I'll need to use the old libcdvd project files (I found v1.13 and v1.15 here at ps2dev.org), until I can modify my sources to use the modern prototypes.

Best regards: dlanor
Back to top
View user's profile Send private message
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Tue Jun 07, 2005 4:37 am    Post subject: Reply with quote

I'm guessing the projects in question refer to a cdfs?

The problem is that there is actually two different libcdvd. There is the libcdvd in ps2sdk, which is basically a set of rpc calls for using the cdrom from the EE, and there is a libcdvd created by hiryu which is a reimplementation of the whole filesystem, supporting both iso9660 and joliet. You can find a copy of it on ps2dev.org.

TBH, I'm surprised those projects in cvs contain that code as they should just be linking to it, not copied the source files..
hmm..
bad coder! no cookie! ;)
_________________
Shoot Pixels Not People!
Makeshift Development
Back to top
View user's profile Send private message Visit poster's website
dlanor



Joined: 28 Oct 2004
Posts: 269
Location: Stockholm, Sweden

PostPosted: Tue Jun 07, 2005 9:03 pm    Post subject: Reply with quote

Drakonite wrote:
I'm guessing the projects in question refer to a cdfs?
Well, the current project is to add improvements to LaunchELF, based on the source release for v3.41, and it uses libcdvd for browsing CD/DVD discs.

Quote:
The problem is that there is actually two different libcdvd. There is the libcdvd in ps2sdk, which is basically a set of rpc calls for using the cdrom from the EE, and there is a libcdvd created by hiryu which is a reimplementation of the whole filesystem, supporting both iso9660 and joliet. You can find a copy of it on ps2dev.org.
The latter is what I needed for LaunchELF, and I've found that it compiles well with v1.15 of that libcdvd.

Quote:
TBH, I'm surprised those projects in cvs contain that code as they should just be linking to it, not copied the source files..
hmm..
bad coder! no cookie! ;)
Agreed, but I think there is some old stuff in CVS which no one has had time for updating, or interest in working on. The project I'm working on now is not from CVS at all, however. Sorry if I misled you on that score.

Best regards: dlanor
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group